Find Matching Values in Row - Then add values

mattytem

New Member
Joined
Aug 21, 2018
Messages
1
Hi,

Bit of a complicated one to explain, but I would appreciate any help if possible?

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]22 (Days in Month 1)[/TD]
[TD]23 (Days in Month 2)[/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]12[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]20[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Sam[/TD]
[TD]18[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]2[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]

I need to be able to compare the names in Column A, find all the matches (if any), then add up the values in Column C.

If the total doesn't match the days in month, then either highlight the cell outline blue (for lower) or red for (higher)

So, for example in Month 1 Sam has two entries, totaling the value 23, so the border turns red.

Thanks for the help!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I am having a problem correlating your narrative to the example data layout. The narrative refers to columns A & C with Sam's Total = 23, but the example shows the 23 in column B. Please clarify where the data resides on your worksheet.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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