Req formula to compare breakup of cells with consolidated amount

Nil70

New Member
Joined
Apr 21, 2018
Messages
2
Hello Friends,

I am new here, require help to compare the values of breakup cells vs consolidated cells. Example as below.
I need to compare D1(employee code) which is having some consolidated total amount in E1. Now I have breakup of that in A1 which is picked up from another working sheet (same employee code as D1) with breakup figures in B1 to B3. Same with D2 & E2. Now there is a figure mismatch between employee code D2 having values in E2 against sum of B4+B5+B6. I need a formula where there is a mismatch in sum against particular employee code, that employee code should highlighted with some colour, so I can compare those two columns & do necessary rectification. This is nothing but comparison between columns having breakup & consolidated amount.


<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.5in; mso-footer-margin:.5in;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial, sans-serif; mso-font-charset:204; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}--></style>
ABCDE
12345675840123456792572
123456785985212345621300
1234567747
21234564568
21234567893
21234568894

<tbody>
</tbody>

Thanks in advance.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi,

You can use my formula in G1 as your CF rule formula for Column D and/or E, this is based on the setup in your/this sample, if your actual setup is different, the formula will need to be adjusted:


Excel 2010
ABCDEFG
112345675840123456792572FALSE
2123456785985212345621300TRUE
31234567747
421234564568
521234567893
621234568894
Sheet19
Cell Formulas
RangeFormula
G1=SUMIF($A$1:$A$6,$D1,$B$1:$B$6)<>$E1
 
Last edited:
Upvote 0
Thank you very much jtakw, it is working.
The only problem is in my sheet column A has more than 3000 entries, against I have to compare aprx 900 entries of column D. Too much manual work for every different number of column A.

Thanks once again for your help.
 
Upvote 0
Thank you very much jtakw, it is working.
The only problem is in my sheet column A has more than 3000 entries, against I have to compare aprx 900 entries of column D. Too much manual work for every different number of column A.

Thanks once again for your help.

If you have the list of unique IDs in Column D (approx. 900), you use the same formula for the entire range of column D, no need to change the Cell reference for each ID, the formula will self adjust.

For this sample, select d1 and drag down to end of your data in Column D, click Conditional Formatting, use formula to...., enter the formula, click format, format as you like.
 
Last edited:
Upvote 0
Thank you very much jtakw, it is working.
The only problem is in my sheet column A has more than 3000 entries, against I have to compare aprx 900 entries of column D. Too much manual work for every different number of column A.

Thanks once again for your help.
Hi!

Try this in Conditional Formatting:

Columns A and B

=SUM(($A$1:$A$6=$A1)*$B$1:$B$6)=VLOOKUP($A1,$D$1:$E$2,2,0)<strike></strike>

Columns D and E

=SUM(($A$1:$A$6=$D1)*$B$1:$B$6)=$E1


ABCDEFG
112345675840VERDADEIRO123456792572VERDADEIRO
2123456785985VERDADEIRO212345621300FALSO
31234567747VERDADEIRO
421234564568FALSO
521234567893FALSOFALSOVERDADEIRO
621234568894FALSOFALSETRUE
7
***********************************************************

<tbody>
</tbody>


Markmzz
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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