if function formula in a accounting format sheet

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello Guys, Wishing all of you a very Happy Happy New Year 2021.
I have 2 workings in this sheet. One is a accounting format sheet where I want the right formula and the other is a general sheet where the formula works. I am not able to get the right answer in the accounting format when I have applied the same formula in both the workings. Does the formula work in a general format sheet only, if not, please share me the solution for the above.
Calculated Duties and taxes.xlsx
ABCDEFGH
1 Accounting Format General Format
2304.871
329,211.672
432,817.083-3
5450.004-2
6304.87-4
729,211.67-1
832,817.0846-10
959.54-245.3310Matched=IF(G9+H8=0,"Matched","Not Matched")
104,111.34-25,100.33
1110,145.81-22,671.27
1224,428.0124,428.01
1330,030.1029,580.10
14436.48436.48
1559.54-245.33
164,111.34-25,100.33
1710,145.81-22,671.27
1883,527.971,25,117.24-41,589.27
1941,589.27Not Matched=IF(C19+D18=0,"Matched","Not Matched")
duties & TAxes (2)
Cell Formulas
RangeFormula
G4G4=-E4
G5G5=-F3
G6G6=-F5
G7G7=-E2
E8:G8E8=SUM(E2:E7)
F9F9=F8+E8
G9,C19G9=IF(F9+G8=0,"Matched","Not Matched")
C9:C11C9=A9-B2
C12,C14C12=A12
C13C13=A13-B5
C15:C17C15=A15-B6
A18:C18A18=SUM(A2:A17)
B19B19=B18-A18
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
It's got nothing to do with the cell formats, it's down to floating point arithmetic Floating-point arithmetic may give inaccurate result in Excel - Office

If you put this formula in a cell
Excel Formula:
=(C18+B19)*10^10
you can see that the two numbers are not exactly the same.
One way to get round this is
Excel Formula:
=IF(ROUND(B19+C18,0)=0,"Matched","Not Matched")
 
Upvote 0
Solution
try =IF(Round(B19,2)+(Round(C18,2)=0,"Matched","Not Matched")

It would have been helpful if your had posted your data with XL2BB.
 
Upvote 0
Upvote 0
Sorry but I don't understand what you mean.
 
Upvote 0
Sorry but I don't understand what you mean.
There are blank cells below the values, that is why it is not calculating correctly. I have given the range including the blank cells to sum. Even the general format is not working, if it has blank cells above the sum amount. Please check this. If I add a value in the blank cells above the sum amount, then too it is showing matched.
Accounting FormatGeneral Format
304.87
1​
29,211.67
2​
32,817.08
3​
-3​
450.00
4​
-2​
304.87
-4​
29,211.67
-1​
32,817.08
59.54-245.33
4,111.34-25,100.33
4​
6​
-10​
10,145.81-22,671.27
10​
Matched=IF(G9+H8=0,"Matched","Not Matched")
24,428.0124,428.01
30,030.1029,580.10
436.48436.48
59.54-245.33
4,111.34-25,100.33
10,145.81-22,671.27
83,527.971,25,117.24-41,589.27
41,589.27Matched=IF(C19+D18=0,"Matched","Not Matched")
 
Upvote 0
Please post your data again using the XL2BB add-in
 
Upvote 0
Please post your data again using the XL2BB add-in
Calculated Duties and taxes.xlsx
ABC
1
2304.87
329,211.67
432,817.08
5450.00
6304.87
729,211.67
832,817.08
959.54-245.33
104,111.34-25,100.33
1110,145.81-22,671.27
1224,428.0124,428.01
1330,030.1029,580.10
14436.48436.48
1559.54-245.33
164,111.34-25,100.33
1710,145.81-22,671.27
182
19
20
21
22
2383,527.971,25,117.24-41,587.27
2441,589.27 Matched
New query
Cell Formulas
RangeFormula
C9:C11C9=A9-B2
C12,C14C12=A12
C13C13=A13-B5
C15:C17C15=A15-B6
A23:C23A23=SUM(A2:A22)
B24B24=B23-A23
C24C24=IF(B24<>C23,"Matched", "Not Matched")
 
Upvote 0
Sorry Once again. If is working fine. Thanks Fluff.
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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