using lookup formula

morand

New Member
Joined
Apr 28, 2015
Messages
2
Hi,
Just wondering if anyone could figure how I can do the following:

I have 2 columns below, One named School and the other one called Area.

My formula in the school column is: =LOOKUP($B7,{"management","hairdressing","medicine"},{"Management School","Hairdressing School","have to do further research"})

However, the formula works fine, except for when it comes to 'Medicine'. When it finds medicine, I want it to check another cell in the same row and then check another excel sheet table to check for the answer. I was looking at nested if functions etc but :confused:Maybe this is too complicated for a formula?

any help, really appreciated?



Code:
School	                                        Area
Hairdressing School	                        management
Hairdressing School	                        hairdressing
have to do further research	                medicine
Hairdressing School	                        management
Hairdressing School	                        hairdressing
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
heads up when you use the lookup function, the lookup_vector has to be a sorted list, in your formula it is not sorted

LOOKUP($B7,{"management","hairdressing","medicine"},{"Management School","Hairdressing School","have to do further research"})
 
Upvote 0
Hi VBAGeek,

Yes, I understand that. But the problem is that if B2 Cell is equal to 'medicine', I don't want it to return 'have to do further research'. Instead I want it to look up another cell and find an answer? Does that make sense. Maybe there is a better way of doing it than the lookup function? the lookup function works find for the other values except 'medicine'...

heads up when you use the lookup function, the lookup_vector has to be a sorted list, in your formula it is not sorted

LOOKUP($B7,{"management","hairdressing","medicine"},{"Management School","Hairdressing School","have to do further research"})
 
Upvote 0
Hello morand and welcome to the board.

I'm not sure we will be able to figure out what you need from the information you have provided - we will need a bit more information. If you can, post a sample of your data and layout and your expected results. Like what values are in B7, since it doesn't look like your data range you show goes to B7. What do you want to return, you say "look up another cell and find an answer", what cell and what answer/results. You need to have some specifics and parameters etc., to get a solution.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,114
Members
452,302
Latest member
TaMere

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