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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,226,729
Messages
6,192,696
Members
453,747
Latest member
tylerhyatt04

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