Multiple VLOOKUP

gwynwjones

Board Regular
Joined
Mar 17, 2004
Messages
66
I use this mulitple VLOOKUP to find a number value:

=IF(ISNA(VLOOKUP(A1,a,1,FALSE)=TRUE),0,VLOOKUP(A1,a,1,FALSE))+IF(ISNA(VLOOKUP(A1,b,1,FALSE)=TRUE),0,VLOOKUP(A1,b,1,FALSE))+IF(ISNA(VLOOKUP(A1,c,1,FALSE)=TRUE),0,VLOOKUP(A1,c,1,FALSE))

It returns the number correctly.

Now I want to alter the lookup from 1 to 5 to find a text value:

=IF(ISTEXT(VLOOKUP(A1,a,5,FALSE)=TRUE),0,VLOOKUP(A1,a,5,FALSE))+IF(ISTEXT(VLOOKUP(A1,b,5,FALSE)=TRUE),0,VLOOKUP(A1,b,5,FALSE))+IF(ISTEXT(VLOOKUP(A1,c,5,FALSE)=TRUE),0,VLOOKUP(A1,c,5,FALSE))

This doesn't work, I get #VALUE!

Strange thing is when I use

=IF(ISTEXT(VLOOKUP(A1,a,5,FALSE)=TRUE),0,VLOOKUP(A2,a,5,FALSE))

It returns the value ok.

The combining of the VLOOKUPS must have an effect.

Anyone any ideas on how to solve this?

Cheers
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
A 0 from one If is added up to a text-value from a subsequent If, an action bound to end up in #VALUE!.


One otion is to invoke VLOOKUP combined with THREED. Do a search on the latter on this board.
 
Upvote 0
Hi,

Try:

=LOOKUP(REPT("z",255),CHOOSE({1,2,3},VLOOKUP(A1,c,5,0),VLOOKUP(A1,b,5,0),VLOOKUP(A1,a,5,0)))
 
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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