Need help with Lookup

Benny RC

New Member
Joined
Nov 4, 2010
Messages
4
Hi,

I have a table that shows apartment numbers in column 1 (in ascending order), and a parking space number in column 2, if a parking space has been assigned to the tenant in that apartment. The parking assignments could change any day.

I am trying to create a new table under a new tab, where parking space numbers are in column 1 (in ascending order), and if the space is assigned to an apartment, then the apartment number would show in column 2.

I have used the formula LOOKUP(A7,E7:F157,B7:B157) to lookup an apartment number for any parking space, but I keep getting #N/A. I have also tried VLookup and HLookup, but had no success.

I would appreciate any help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Sir
you can try this Same as Aladin but slight modification

=IF(ISNA(INDEX(A1:A11,MATCH(target cell ref,B1:B11,0))),"Vacant",(INDEX(A1:A11,MATCH(G1,B1:B11,0))))

a1:a11 - apartment numbers(choose range you want)
b1:b11 - parking spaces numbers(choose range you wan)
target cell reference is the cell where you want the result in the other worksheet

regards
P>S> i got inspiration from Aladin and thanks to him! i am in learning stage so excuse if i have made mistake
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top