lookup easy one

lars

Board Regular
Joined
Mar 27, 2002
Messages
105
=VLOOKUP(IF(ISNUMBER((E15)*1),(E15)*1,(E15)),pax,12,FALSE)+VLOOKUP(IF(ISNUMBER((E16)*1),(E16)*1,(E16)),pax,12,FALSE)

The formula takes cells E15-E21 just not shown here for simplicity.

What can I add to the formula so if cells 16-21 are blank it won't return a #N/A?

thanks
 
On 2002-04-25 16:56, lars wrote:
Mark, I just typed in a 0...no good?

So your left-most column of PAX looks something like...

0
A112
A113
D112

...Right? What did you mean by "it only works with E15"?
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Mark, my data looks like what you said I will put the 0 at the bottom but other than that it's the same. My range of cells E15-E21 are voyages and when I put the A228 for example in E15 The lookup will find A228 in the range PAX but when I put A229 in E16 then #n/a comes back.
 
Upvote 0
On 2002-04-26 10:08, lars wrote:
Mark, my data looks like what you said I will put the 0 at the bottom but other than that it's the same. My range of cells E15-E21 are voyages and when I put the A228 for example in E15 The lookup will find A228 in the range PAX but when I put A229 in E16 then #n/a comes back.

Then "A229" must not be in PAX. Are you sure that no trailing spaces were inadvertantly added to either your lookup value or the table_array, PAX?
 
Upvote 0
I'm positive, I will play with it some more to see if I can come up with another solution. Any other thoughts?

Thanks
 
Upvote 0
BTW, I have no idea what you're trying to accomplish with...

IF(ISNUMBER((E15)*1),(E15)*1,(E15))

...if 0 has been added to PAX you can simply use...

=VLOOKUP(E15,PAX,12,FALSE)
 
Upvote 0
I know that formula for some reason worked with this download and the regular lookup did not. Not sure why....maybe now with the 0 I will try the lookup as you stated and see what happens.

Thanks for the help Mark!!
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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