Forum

Notifications
Clear all

If this then that equals

5 Posts
4 Users
0 Reactions
57 Views
(@gazman1976)
Posts: 2
New Member
Topic starter
 

Hi, can anybody help me with this formula that i can't work out please?

i have a drop down box in one column with 5 different sizes ie Extra Small, Small, Medium, Large and Extra Large and next to that l would like a number value to appear when a certain drop down is selected. 

Ie

Extra Small would equal 32

Medium would equal 56

Extra Large equal 100

Any help with this would be great as l can't figure this out.

Thanks in advance

GarryDrop-down.pngInfo.png

 
Posted : 21/11/2020 3:47 pm
(@purfleet)
Posts: 412
Reputable Member
 

It is so much easier if you add workbook examples instead of pictures

you should be able to use an index/match or vlookup

=INDEX(P1:P5,MATCH(A2,O1:O5,0))

 
Posted : 22/11/2020 12:26 am
(@gazman1976)
Posts: 2
New Member
Topic starter
 

Thanks very much for your advise with my question.

Garry

 
Posted : 22/11/2020 5:37 pm
(@jim)
Posts: 16
Eminent Member
 

Hi Garry,

If you're on 365, then you can use XLOOKUP (formula for cell H3 in your pictured example) :

=XLOOKUP(G3,$B$45:$B$49,$C$45:$C$49)

(the dollar signs mean that the formula will always look in those rows and not increment when the formula is copied down to the rest of your data)

jim

 
Posted : 29/11/2020 8:08 pm
(@rickbale)
Posts: 1
New Member
 

Try this formula 

So an IF statement can have two results. The first result is if your comparison is True, the second if your comparison is False.

For example, =IF(C2=”Yes”,1,2) says IF(C2 = Yes, then return a 1, otherwise return a 2).

 

Regards,

Rick Bale

 
Posted : 19/12/2020 7:25 am
Share: