If no match exists create a match

melfinance

New Member
Joined
Jan 20, 2005
Messages
7
I have four column of data. The first two columns are data from the prior month, say January. The first column is an account number and the second column is an invoice number in the account. The other two columns of data are the same data format but with data from the next month.
What I am trying to do is to get each account and invoice to line up next to its match from the previous month. The tricky part is sometimes either an invoice no longer exists in an account or an invoice is added.
What I need is for excel to compare the two lists and to say okay I checked the list and this account no longer has this invoice so I am going to copy the previous months and put it into this months data. Or this account was added I am going to insert a line accross from the new account and add it to the previous months data.
They all have to line up directly accross from each other in the spreadsheet.
I think what I need is a giant if statement that has a lookup based on two criteria. Tricky :oops:
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Here is what my sheet looks like before I cut and paste all the rows to line up next to each other. I have to see if both MGMT and Invoice are the same. If they are the line up next to each other. If not I have to add a line with the missing or new invoice number in the MGMT code.
 
Upvote 0
Board functionality's a bit off at the moment; if you'd like to email a sample of your data, as well as expected results, let me know.
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

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