Formula to compare.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,840
Office Version
  1. 365
Platform
  1. Windows
I am comparing two pivot tables, one GL has 96 rows and another one FA has some 50 rows. Some one takes entries from GL and enters it is FA. I need to see if there is any entries missing or wrong entered. For this reason I did pivot tables for both GL and FA, so it will be easy to compare. Now there are three types of entries, 1, that are in GL and not in FA, 2, In FA and not in GL, and 3, in both but different. General ID in both is key field. So far, I used these formula.
=IF(ISNA(VLOOKUP($A7,$E$5:$F$67,2,0)),0,(VLOOKUP($A7,$E$5:$F$67,2,0))) and
=IF(ISNA(VLOOKUP($E5,$A$5:$B$96,2,0)),0,(VLOOKUP($E5,$A$5:$B$96,2,0)))
To compare both the tables,

=SUMIF (H5:H96,"=0",J5:J96) and
=SUMIF (I5:I96,"=0",J5:J96)

To see the difference,
I need a formula that gets me the difference between the two values, when there are values in both, so I think I need AND IF formula.

Please help. Thanks
Please note, I post the same problem before (compare two values based on condition), but the last part is new, so this is NOT a duplicate post.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I used this array formula to add up all, but I need to formula to show the difference of individuals.
=SUM((H5:H96<>0)*(I5:I96<>0)*J5:J96)
 
Upvote 0
I got the answer,
thanks to every one who read my post,
the answer is,
=IF(AND(H88<>0,I88<>0),H88-I88,"")
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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