The IF function with extra

RoydenC

Board Regular
Joined
Jul 24, 2002
Messages
54
My problem is easy, as I have seen it sorted before, but am havibng difficulty doing it again
I want to select information in cell only if it is between two Values ( eg greater than 0 but less than say 10) then include the contents of that cell in the calculation...
ie =IF((D3+D8)<0....." but less than 10" etc etc - how do you set up this formula ?
Thanks
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Derek

Well-known Member
Joined
Feb 16, 2002
Messages
1,592
Hi there
For an IF statement that gives a return only when D3+D8 is between 0 and 10 inclusive, you need a formula something like this:

=IF(AND(D3+D8>=0,D3+D8<=10),DO SOMETHING,DO SOMETHING ELSE)

The IF condition comes before the first comma, the result you want if the condition is true comes after the first comma, the result you want if the condition is false comes after the second comma.

hope this helps
regards
Derek
PS If you do not want to include 0 or 10 use the >< signs rather than >=<= signs
This message was edited by Derek on 2002-10-17 04:09
 

Forum statistics

Threads
1,143,916
Messages
5,721,525
Members
422,369
Latest member
redinator

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