Formula Help [Solved/Closed]

Report
Posts
2
Registration date
Monday February 1, 2016
Status
Member
Last seen
February 2, 2016
-
Posts
1260
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
February 3, 2020
-
Can someone please help me with this formula

=IF(G2="1",VSC410, IF(G2="2",VSC450, IF(G2="3",VSC470)))

What i am trying to do is : if G2 has the number "1" then insert VSC410 in (column E) etc etc. With the above formula all i get is "false" or other variations i get "#value".

I would appreciate any help with this

Thank you
Marg

1 reply

Posts
1260
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
February 3, 2020
213
Hello Marg,

You were almost there! Try the following slightly amended formula:-

=IF(G2="","",IF(G2=1,"VSC410",IF(G2=2,"VSC450", IF(G2=3,"VSC470"))))

You had the quotaion marks in the wrong place and I've added a little bit at the begining to stop "False" from appearing. Numbers don't need to be wrapped in quotation marks but text or text/numbers do.

Drag the formula down Column E as far as you need.

I hope that this helps.

Cheerio,
vcoolio.
3
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2942 users have said thank you to us this month

Posts
2
Registration date
Monday February 1, 2016
Status
Member
Last seen
February 2, 2016

Thank you so much - you have made my day! Worked perfectly. :) :)
Posts
1260
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
February 3, 2020
213 >
Posts
2
Registration date
Monday February 1, 2016
Status
Member
Last seen
February 2, 2016

Excellent Marg! Glad that I was able to help out.

Cheerio,
vcoolio.