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.
 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

StephenCrump

MrExcel MVP
Joined
Sep 18, 2013
Messages
4,043
Office Version
  1. 365
Platform
  1. Windows
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:

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,491
Messages
5,596,477
Members
414,070
Latest member
DuncanLucas

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
Top