populate cells in new "log" worksheet from three separate worksheets used as different invoice templates

patrabil

New Member
Joined
May 22, 2012
Messages
5
Can anyone advise..how I can create an ongoing "log" to automatically populate inv#, date, customer, and amount, pulling data from three other worksheets using identical templates (for 1st, 2nd and final invoices).

Since they are only templates, every time I create a new customer invoice by reediting , it changes the previous entry in my "log" sheet, the way I currently have it set up. Obviously, the invoice# is the one unique factor throughout. All 4 worksheets are within the same workbook. It would be great if there were some way to tell the "log" sheet to extract the date, name & amount no matter what worksheet contained the source data, by inputting the invoice number alone (in Col "A"). I do have a formula (using vlookup) unique to each of the existing 3 worksheets to generate an invoice#, so I'm not sure if this could interfere..although there's no problem to copy/paste. Any help, anyone??
PAR
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

I tried an example workbook with 4 sheets, 'Log', '1st', '2nd' & 'Final'

In sheet '1st' cell B1 I entered 99/1 as invoice number and in cell B3 111 as an amount.
In sheet '2nd' cell B1 I entered 99/2 as invoice number and in cell B3 222 as an amount.
In sheet 'Final' cell B1 I entered 99/3 as invoice number and in cell B3 333 as an amount.

In sheet log I used cell A1 to enter an invoice number and in cell B1 entered the formula;

Code:
=IF(A1='1st'!B1,'1st'!B3,IF(Log!A1='2nd'!B1,'2nd'!B3,IF(Log!A1=Final!B1,Final!B3,"Not Found")))

Is that the sort of thing you're looking for?

Best regards
Richard
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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