IF Statement help

Arts

Well-known Member
Joined
Sep 28, 2007
Messages
782
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all

I have an IF statememt query

I am currently using the formula

=IF(Workings!M102<1,Workings!M101,Workings!M102)

which is working fine how ever I wanted to incorporate IF M101 < 1 then give me M100

i tried the following

=IF(Workings!M102<1,Workings!M101,IF(Workings!M101<1,Workings!M100,Workings!M101))

but this did not work any help would be much appreciatted

Thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try

=IF(Workings!M102<1,IF(Workings!M101<1,Workings!M100,Workings!M101),Workings!M102)
 
Upvote 0
God that has annoyed me so much !!

Vog why your formula work and my one didnt (even my other attempt below)???

I even tried

=IF(Workings!M102<1,Workings!M101,if(Workings!M101<1,Workings!M100,Workings!M101),Workings!M102)

I noticed you put your second IF statement in the TRUE part rather than the FALSE
 
Upvote 0
It is a matter of getting the logic correct and the parentheses in the right place

Code:
=IF(Workings!M102<1

    then 

        IF(Workings!M101<1

              then

        Workings!M100

       else

         Workings!M101)

else

Workings!M102
 
Upvote 0
Thank you VoG

I shall go away and study
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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