OR (IF) Function

LJREdinburgh

New Member
Joined
May 20, 2014
Messages
46
Hello,

I have a spreadsheet that is comparing quarterly figures in two separate columns. The IF Formula I have allows me to show increases and decreases with arrows formatting the cell with Wingdings3, however what the formula does not allow is to show no change as you can see in row two, both quarterly figures are 30%. The formula is returning a "q" now, and ideally I would want it to return "1". I assume this would be done with an OR, IF Formula, but I can't figure it out.

Thanks in advance

[TABLE="width: 500"]
<tbody>[TR]
[TD]43%[/TD]
[TD]46%[/TD]
[TD]=IF(R7>S7,"p","q")[/TD]
[/TR]
[TR]
[TD]30%[/TD]
[TD]30%[/TD]
[TD]=IF(R8>S8,"p","q")[/TD]
[/TR]
[TR]
[TD]22%[/TD]
[TD]18%[/TD]
[TD]=IF(R0>S9,"p","q")[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Not, quite, the OR function would be used if you wanted the same result for different criteria.

You need

=IF(R7>S7,"p",IF(R7=S7,"1","q"))

Or an alternative method

=CHOOSE(SIGN(S7-R7)+2,"p","1","q")
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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