Hi, I'm sure this is very straight forward?
How do I use the 'If' function to return a value in one cell depending on the text in another cell?
So for example; If A1=London then A5 is returned as 100
Many thanks for any guidance.
Hi, I'm sure this is very straight forward?
How do I use the 'If' function to return a value in one cell depending on the text in another cell?
So for example; If A1=London then A5 is returned as 100
Many thanks for any guidance.
A5 cell
=IF(A1="London",100,"")
In A5: =If(A1="London", 100,"whatever you want as second criteria")
Click the * to say thanks.
Thanks so much! And if i need to extend that function to add an alternative... eg If A1 = Birmingham then =200, how would I incorporate that as well?
=IF(A1="London",100,IF(A1="Birmingham",200,""))
=IF(A1="London",100,IF(A1="Birmingham",200,""))
If there are many options then a "lookup" function will be better
Brilliant! Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks