Iflookup

stebrownsword

Board Regular
Joined
Apr 16, 2010
Messages
151
Hello All,

need help with lookup.....

basically i need forumla which says

IF cell A2= Clinical, look at range X
IF cell A2=Non Clinical, look at Range Y


Thanks in advance
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hello All,

need help with lookup.....

basically i need forumla which says

IF cell A2= Clinical, look at range X
IF cell A2=Non Clinical, look at Range Y


Thanks in advance

Is there always going to be Clinical or Non Clinical in the A range?

If so,

=IF(A2="Clinical",vlookup(A2,[x],#,0),vlookup(A2,[y],#,0))
 
Upvote 0
=IF(A2="Clinical",vlookup(A2,[x],#,0),vlookup(A2,[y],#,0))

In the above formula you need to specify what x and y are (the table where you are looking up A2) and you need to specify which column you want to return data from the table you designate x and y).

This formula looks up range x if A2=Clinical, and range y if A2=Non Clinical

What do you want range x and range y to be?

Perhaps if you explained what x and y are, and what you want returned when A=Clinical or non Clinical i could help you better.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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