Excel QUESTION

billybernadette

New Member
Joined
Oct 16, 2017
Messages
2
I have this excel formula and i dont know if there is an error or not. if someone could explain this if its not an error that would be great.

IF(1>=1, IF(2<>1,1,3,),2)+1
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
IF(1>=1, IF(2<>1,1,3,),2)+1

Someone else's formula? Looks to me like they're just messing around testing how IF() functions work.

There is an error in the formula, as there are too many parameters provided for the middle IF().

Assuming it's meant to be: IF(1>=1, IF(2<>1,1,3),2)+1

then the formula will always return 2, i.e. it's not a sensible formula that has any real use.
 
Upvote 0
What is this supposed to be doing?

The 1st IF is redundant as 1>=1 will always return TRUE (1 is always = 1)
the 2nd IF has an extra , in there at the end
IF(1>=1, IF(2<>1,1,3,),2)+1
it is also pretty much redundant, as 2will always be <>1 so that will also always be TRUE

IF(1>=1, IF(2<>1,1,3,),2)+1 will always return 2 (as was said above)
IF(1>=1 means that this will always be the next part that triggers IF(2<>1,1,3)
so this will always return 1...plus he +1 at the end, outside all the IF's, gives 2
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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