How to find matching numbers in one column and add data from another column

kyleax1

New Member
Joined
Nov 11, 2010
Messages
22
On sheet 1(sales) In column B there will be hundreds of invoice numbers(no duplicate invoice numbers because each invoice number represents a sale with the associated customer name, sale price, etc. Column E is sales price, F is type of sale, G is max percentage that should be paid on that type of job, H is how much has currently been input as payroll from sheet 2 (payroll).

On sheet two (payroll) in column B there will be invoice numbers and many will be duplicated because multiple people will be going to the same job to do the install and have pay associated with that job. In column H it will have how much has been paid to the various employees for installing that job.

(spreadsheet link) excel - Google Drive

What I'm trying to do is have sheet 1 check against all invoice numbers from sheet 1(sales) column B against their matching invoice numbers on sheet 2 (payroll) column B then when it finds all the matching invoice numbers counts up the totals in column H on sheet 2 and sums them into sheet 1 column H.

The goal is to have a way to track how much employees have charged to each job and make sure it does not go over the max percentage the company can afford to pay on that job. When a job takes several weeks and multiple people may be going to that job and claiming pay on their weekly payroll it because an impossible task to keep up with every job and every payroll to make sure theft or error isnt taking place.

In addition to that I created a third sheet (calculator) which gives a max percentage for every sales category which are then used on sheets 1 and 2. Once I can get the intial formula figured out I'm wanting excel to cross reference columns H against the calculated and if the percentage exceeds the max percentage allowed then the percentage in H turns red to make it easy to spot overpaid jobs.

I'm not even sure if all of this is possible, but I'm hoping someone knows how to do this with excel 2013l
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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