PorterGlenn
New Member
- Joined
- Feb 25, 2015
- Messages
- 4
Hello all,
Monthly I have to reconcile a list of invoices on my end with our suppliers list of invoices. Theoretically this should be the same, but inevitably every month we are missing some of their invoices, and they are missing some of their invoices. (how are they missing their own invoices?!)
A vlookup works to figure out who needs copies of what invoices but running the vlookup on our list, and then on their list gets really confusing to actually figure out who needs what invoices.
So I created a monster formula that uses INDEX/MATCH formulas, a bunch of IF statements, and ultimate spits out a response that I can quickly review to find out what needs to be done with that specific invoice.
My monster formula uses a master list of all invoices which is compiled by copying all of our invoice numbers, and all of their invoice numbers into column L, then removing the duplicates. Then with a true list of ALL the invoices for a given month I run my formula in column M.
The formula then matches the invoice number from the master list in column L to column B (their invoice list) and column G (my invoice list) if there is no match it reports that either they need, or I need a copy of that invoice. Then if we both have the invoice the formula compares the price and the store # of the invoice.
My headache is coming from having to format both their and our invoice list, to get all the information into the appropriate columns so that my formula is pulling/comparing the correct data. This really only takes a few minutes to actually copy and paste the columns, but to read through the formula and re-learn exactly what order everything needs to be in has gotten really annoying. If I did it daily I would probably remember all this stuff but by the time next month rolls around I have for the most part completely forgotten everything. Note I did try making notes for myself but seemingly every time I somehow messed something up and then had to trouble shoot for seemingly an hour.
I really want to create a Macro that will just take the raw data from their system and our system and put it in order and then run my formula on the master invoice list in column L. I have basically no idea how to do this, but feel like this should be a relatively simple VBA code? I realize I will have to copy and paste both our data and theirs into the spreadsheet to get every thing started and I am find with that.
So their info comes in like so:
Column A: Date
Column B - D: useless info
Column E: Ticket #
Column F - J: useless info
Column K: Price
Column L: Store #
Which I copy and paste the entire thing to my workbook and title the tab Their RAW
Our info is pulled and comes in as so:
Column A: Ticket #
Column B: Date
Column C: useless info
Column D: Store #
Column E - S: useless info
Column T: Price
which I copy and past the entire thing to my workbook and title the tab My RAW
The goal is to then get everything to the third tab titled Worksheet in the following format:
Column A: Their RAW.column A
Column B: Their RAW.column E
Column C: Their RAW.column K
Column D: Their RAW.column L
Column E: left blank
Column F:My RAW.column B
Column G: My RAW.column A
Column H: My RAW.column T
Column I: My RAW.column D
Column J: left blank
Column K: left blank
Column L: copy and paste all invoices from Their RAW.column E and My RAW.column A and then remove duplicates
Column M: My formula that runs off the invoice number in column L, it would be nice if the macro could be dragged down so it generates a response for every invoice # in column L
Also please note that we don't have the same number of invoices each month so I cant just copy the columns down to row x, and if it matters I'm dealing with around 3,000 invoices a month.
If anything else is needed please let me know.
Monthly I have to reconcile a list of invoices on my end with our suppliers list of invoices. Theoretically this should be the same, but inevitably every month we are missing some of their invoices, and they are missing some of their invoices. (how are they missing their own invoices?!)
A vlookup works to figure out who needs copies of what invoices but running the vlookup on our list, and then on their list gets really confusing to actually figure out who needs what invoices.
So I created a monster formula that uses INDEX/MATCH formulas, a bunch of IF statements, and ultimate spits out a response that I can quickly review to find out what needs to be done with that specific invoice.
My monster formula uses a master list of all invoices which is compiled by copying all of our invoice numbers, and all of their invoice numbers into column L, then removing the duplicates. Then with a true list of ALL the invoices for a given month I run my formula in column M.
The formula then matches the invoice number from the master list in column L to column B (their invoice list) and column G (my invoice list) if there is no match it reports that either they need, or I need a copy of that invoice. Then if we both have the invoice the formula compares the price and the store # of the invoice.
My headache is coming from having to format both their and our invoice list, to get all the information into the appropriate columns so that my formula is pulling/comparing the correct data. This really only takes a few minutes to actually copy and paste the columns, but to read through the formula and re-learn exactly what order everything needs to be in has gotten really annoying. If I did it daily I would probably remember all this stuff but by the time next month rolls around I have for the most part completely forgotten everything. Note I did try making notes for myself but seemingly every time I somehow messed something up and then had to trouble shoot for seemingly an hour.
I really want to create a Macro that will just take the raw data from their system and our system and put it in order and then run my formula on the master invoice list in column L. I have basically no idea how to do this, but feel like this should be a relatively simple VBA code? I realize I will have to copy and paste both our data and theirs into the spreadsheet to get every thing started and I am find with that.
So their info comes in like so:
Column A: Date
Column B - D: useless info
Column E: Ticket #
Column F - J: useless info
Column K: Price
Column L: Store #
Which I copy and paste the entire thing to my workbook and title the tab Their RAW
Our info is pulled and comes in as so:
Column A: Ticket #
Column B: Date
Column C: useless info
Column D: Store #
Column E - S: useless info
Column T: Price
which I copy and past the entire thing to my workbook and title the tab My RAW
The goal is to then get everything to the third tab titled Worksheet in the following format:
Column A: Their RAW.column A
Column B: Their RAW.column E
Column C: Their RAW.column K
Column D: Their RAW.column L
Column E: left blank
Column F:My RAW.column B
Column G: My RAW.column A
Column H: My RAW.column T
Column I: My RAW.column D
Column J: left blank
Column K: left blank
Column L: copy and paste all invoices from Their RAW.column E and My RAW.column A and then remove duplicates
Column M: My formula that runs off the invoice number in column L, it would be nice if the macro could be dragged down so it generates a response for every invoice # in column L
Also please note that we don't have the same number of invoices each month so I cant just copy the columns down to row x, and if it matters I'm dealing with around 3,000 invoices a month.
If anything else is needed please let me know.