IF Statement for 3 text values

Eireangel

New Member
Joined
Jan 25, 2021
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I want to create a formula that will return 3 numerical values based on 3 different text values.
I've got the first part but can't figure it out for the rest
=IF(A4="Decrease", "-1")

If cell says "decrease" return value of -1
If cell says "same" return value of 0
If cell says "increase" return value of 1

Thanks in advance!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
there a few ways to do this - BUT as you mentioned IF - we can use a Nested IF
IF works as IF ( TEST , IF TRUE DO THIS, IF FALSE DO THIS)
By nesting the example below - IF the ANSWER if FALSE we do another IF and so in

IF decrease then do -1 , if false - then TEST again with a different TEST , this time SAME if true do 0 if false - TEST again with a different test this time increase , if true 1 if FALSE then the value in A4 is FALSE and does not meet any of our criteria so far - so put Does not meet in the cell - we could just put "" and leave the cell blank

=IF(A4="Decrease", -1, IF( A4="Same", 0 , IF( A4 = "Increase", 1 , "Does not meet criteria" )))
NOTE
a "-1" will return the number as a text format and NOT a number so leave out the "" if you want a number
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,575
Members
449,318
Latest member
Son Raphon

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