Cashbook error

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
161
Office Version
  1. 2021
Platform
  1. Windows
I am setting up a cash book for the treasurer of our club and have a issue with the following formula.
=IF(SUM(I18:AB18)=0,"Auto Calculation",IF(AND(I18>0,SUM(J18:AB18))<>I18,"Error",SUM(J18:AB18)))
II8 is $460 J18:AB18 is $460 the formula is returning "Error" where I need it to SUM(J18:AB18) = $460
I have tried different bracketing to no avail.
Any assistance would be greatly appreciated.
Cheers,
Dave.
 

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.
Just move the 2nd bracket you have before <> to be after <>I18, see below:
Rich (BB code):
=IF(SUM(I18:AB18)=0,
     "Auto Calculation",
      IF(AND(I18>0,SUM(J18:AB18)<>I18),
                  "Error",
                   SUM(J18:AB18)))
 
Upvote 0
Solution
Just move the 2nd bracket you have before <> to be after <>I18, see below:
Rich (BB code):
=IF(SUM(I18:AB18)=0,
     "Auto Calculation",
      IF(AND(I18>0,SUM(J18:AB18)<>I18),
                  "Error",
                   SUM(J18:AB18)))
Thank you so much.
Cheers,
Dave.
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,086
Members
449,206
Latest member
ralemanygarcia

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