Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Peter Horrocks
 
Posts: n/a
Default Merging rows

I have created a series of spreadsheets to help my daughter in her role as a
part-time Avon rep. Generally, everything works fine but I am stuck in one
particular area. Each 3 week period (campaign) her customers order roughly
200 items. I type these into a sheet and then use the Pivot Table wizard to
produce a summary of the item numbers and quantity of each required. The
problem is that I can't manipulate the ouput from the Pivot Table so is
there a different way to produce a summary? The reason I want to use the
data is that I have another sheet with 19 columns (A is the item number and
the rest are the 18 annual campaign numbers). I input (manually) the item
numbers with the quantity ordered at the bottom of this master sheet, then
sort it by item number so that I have duplicate item numbers in column A
with quantities under various campaign numbers. I want to merge this data so
that I only have 1 row for each item number. For example, row 1 shows item
12345 in column A then each of the related 18 columns will have the quantity
of item 12345 ordered for that campaign. Can anybody tell me if there is a
way to merge the rows using code please?

Regards,

Peter


  #2   Report Post  
bpeltzer
 
Posts: n/a
Default Merging rows

If you have the master sheet, and separate sheets for each campaign, you
could use the SUMIF function on the master sheet to aggregate the quantity
for each p/n for each campaign. If your input data is on a sheet named
Campaign1, with p/n in column B and qty in column C, then on the master sheet
in row B2, you'd enter =sumif(Campaign1!$B:$B,$A2,Campaign1!$C:$C). You'd
just change the sheet reference to Campaign2, etc as you work across.
Alternatively, you could continue with the pivot table, and on the master
sheet use a vlookup to get each p/n's quantity for that campaign:
=vlookup($A2,PivotCampaign1!$A:$B,2,false). (And in columns next to the
pivot you could use the match function to identify new p/n's:
=match(a2,Master!A:A,false) will return #N/A for the new items.)


"Peter Horrocks" wrote:

I have created a series of spreadsheets to help my daughter in her role as a
part-time Avon rep. Generally, everything works fine but I am stuck in one
particular area. Each 3 week period (campaign) her customers order roughly
200 items. I type these into a sheet and then use the Pivot Table wizard to
produce a summary of the item numbers and quantity of each required. The
problem is that I can't manipulate the ouput from the Pivot Table so is
there a different way to produce a summary? The reason I want to use the
data is that I have another sheet with 19 columns (A is the item number and
the rest are the 18 annual campaign numbers). I input (manually) the item
numbers with the quantity ordered at the bottom of this master sheet, then
sort it by item number so that I have duplicate item numbers in column A
with quantities under various campaign numbers. I want to merge this data so
that I only have 1 row for each item number. For example, row 1 shows item
12345 in column A then each of the related 18 columns will have the quantity
of item 12345 ordered for that campaign. Can anybody tell me if there is a
way to merge the rows using code please?

Regards,

Peter



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
formula to use when number of rows changes dynamically confused Excel Worksheet Functions 3 August 17th 05 03:55 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Merging Two Rows Into One Ourania Excel Worksheet Functions 1 March 18th 05 10:07 AM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 10:56 PM


All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"