PC Review


Reply
Thread Tools Rate Thread

Copying and Adding Values

 
 
Harlan
Guest
Posts: n/a
 
      19th Nov 2009
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


 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      19th Nov 2009


If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Harlan" <(E-Mail Removed)> wrote in message
news:11C36E91-3274-4756-81EF-(E-Mail Removed)...
>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
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel2007: copying filtered table values, how can I copy ONLY thefiltered values AC Microsoft Excel Discussion 2 27th Nov 2009 09:27 PM
Adding numerical values based on multiple values in another column =?Utf-8?B?S2F6bWFuaWFj?= Microsoft Excel Worksheet Functions 6 4th Apr 2007 08:53 PM
Graph - comparing values of 2 series while adding an attribute for each compared values Chen G Microsoft Excel Charting 2 1st Nov 2004 07:08 PM
Graph - comparing values of 2 series while adding an attribute for each compared values Chen G Microsoft Excel Misc 1 1st Nov 2004 02:44 AM
Re: Adding custom values and database values to DropDwonList William F. Robertson, Jr. Microsoft ASP .NET 0 1st Jul 2003 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.