Stuck on IF

hineshines

New Member
Joined
Mar 9, 2016
Messages
25
I have 3 cells.

Q,S and U

If Q2 is less than 1, I need it to return 0
If Q2 equals1, I need it to return 1
If Q2 shows any number greater than 0, It will also populate cell U2 with number 1.
If S2 is greater than 0, it will show actual count.
If U2 equals 1 and S2 is greater than 0, I need to show S2 + U2.

=IF(Q2<1,0,IF(Q2=1,1,IF(S2>1,S2+U2)))

Any help is appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Perhaps you can give us some examples to illustrate?

Based on what you've said, I think we're trying to define ??, where:

ABC
1ValueConditionDisplay
2Q2<10
3Q2=11
4Q2>1??

<tbody>
</tbody>

For ??, you have: IF(S2>1,S2+U2)

Based on what you've said previously, U2 will always be 1 in this scenario?

What do you want to show if S2<=1? Or should this first test perhaps be S2>0?
 
Last edited:
Upvote 0
wait, this formula is going INTO U2?
=IF(Q2<1,0,IF(Q2=1,1,IF(S2>1,S2+U2)))

If so, then you will get a circular reference error. A cell should not (normally) refer to itself
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

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