IF OR... or something else?

Tazzy666uk

New Member
Joined
Jul 15, 2014
Messages
17
Hi, It took me quite a while to work out one part of what i want, but could really do with some help now please :)

So, I have a drop down box with 4 'words' that someone selects:

Pre-school
School
Club
Other

What i want to happen is for someone to select one of these words and it bring up a price in another cell. I have another sheet that has costs in it along with other forms and boxes etc. For example

Pre-school =£5.00
School =£10.00
Club = £15.00
Other =£20.00

I created this for 'Pre-school' =IF(C7="Pre-School",Lists!H10,"") and it works.
I created this for 'School' =IF(C7="School",Lists!H11,"") and it works.
I created this for 'Club' =IF(C7="Club",Lists!H12,"") and it works.
I created this for 'Other' =IF(C7="Other",Lists!H13,"") and it works.

BUT...

How can i string them all together so that either 'word' returns the appropriate value within the same cell? I think this needs 'OR' in it somewhere but i am not clever enough to work it out!!


FYI - These costs can change quite often , which is why i have a single reference point in another sheet. I only have to change this figure, and the rest will change automatically.


I hope that makes sense?

Thanks in advance

Tazzy
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Book1
CDEFGH
1TypePrice
2Pre-School 5
3School10
4Club15
5Other20
6
7School£10
Sheet1
Cell Formulas
RangeFormula
D7D7=INDEX($H$2:$H$5,MATCH($C$7,$G$2:$G$5,0))
Cells with Data Validation
CellAllowCriteria
C7List=$G$2:$G$5
 
Upvote 0
Thank you both, i REALLY appreciate this. Can i ask - is one method better/more beneficial than the other?

thank you again, i appreciate your time

Tazzy
 
Upvote 0
Hi Tazzy666uk,

VLOOKUP is easier to remember as it's only one function, but it does have limitations (you can't retrieve from columns on the left of the search column, you can only search vertically down columns as you'd need to use HLOOKUP to search horizontally).

There's no significant difference in speed of operation but if you're planning to progress your Excel knowledge then I'd suggest using INDEX and MATCH as they're more easily incorporated with other functions.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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