Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to create a macro to copy information from different worksheets
to one single worksheet, and add the values associated with them together. I know this is a little vague, but it is pretty hard to explain, though I will try. I have a workbook that contains many different worksheets, all with menu cost analysis information in them, each worksheet is for a different menu category and time of day (apps, entrees, lunch, dinner, etc.) Each worksheet has the same format. The first column contains an ID number so that other macros can use the information. The second column contains the name of the item. The third column is the number of items sold and the sixth column is the total cost for the item. (The fourth and fifth columns aren't necessary but can't be deleted. I would like to create a macro that copies the item names, number sold and total cost to a separate worksheet, but if there are duplicates of the item on different sheets, to be able to just add the number sold. Does this make any sense? Is this even possible? The reasoning is that I would like to create the ideal food cost which is the total cost of all the items sold times the total number of items sold, divided by by total food sales, which would be entered separately. Someone please help. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding Rows and copying cells | New Users to Excel | |||
Adding numerical values based on multiple values in another column | Excel Worksheet Functions | |||
adding row from userfrom and copying formulas | Excel Programming | |||
adding and copying rows | Excel Programming | |||
Copying and skipping (adding) rows | Excel Programming |