LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Macro or Formula to merge data

On Apr 22, 11:25*pm, CandiC wrote:
I have 30000+ rows to merge, will I need to use these formulas to bring the
data into a new sheet to merge them, or where would I insert the formula?

"Ken Johnson" wrote:
On Apr 22, 7:19 am, CandiC wrote:
Downloaded Data format................
……Column A….ColumnB……..Column C…….column D…..Column E…….Column F


.1…item #.........qty expect……purch ord#.....<blank…….<blank………..<blank
.2..Description…Qty rec’d……<blank…………Unit Price…..Ext Price……Unit of Meas


(Wish list)
…..Col A..........Col B…....Col C….........Col D...........Col E………..Col
F………..Col G


.3..Item#....Description…Qty Rec’d….PO#...Unit of Measure..Unit price…Ext.
recd


This is a receiving report, I am trying to calculate total receipts per item
number, however, when I download the information from our MRP system *I end
up with two rows of information. I need to merge the information in rows 1
and 2 keeping them in line(Wish list) , however, in Column B *, I would only
like to state the total “Quantity Rec’d” and delete the “qty Expect.” Please
advise if this would need to be written as a macro. Can someone help me
please?


If all the Item#s are in the odd numbered rows of column A then you
could use…
=INDIRECT("A"&ROW(1:1)*2-1)
to extract the item#s


If all the Descriptions are in the even numbered rows of column A then
you could use…
=INDIRECT("A" & ROW(1:1)*2)
to extract the Descriptions


If all the Qty rec’ds are in the even numbered rows of column B then
you could use…
=INDIRECT("B" & ROW(1:1)*2)
to extract the Qty rec’ds


If all the purch ord#s are in the odd numbered rows of column C then
you could use…
=INDIRECT("C" & ROW(1:1)*2-1)
to extract the purch ord#s


If all the Unit of Meass are in the even numbered rows of column F
then you could use…
=INDIRECT("F" & ROW(1:1)*2)
to extract the Unit of Meass


If all the Unit Prices are in the even numbered rows of column D then
you could use…
=INDIRECT("D" & ROW(1:1)*2)
to extract the Unit Prices


Ext. recd???


Ken Johnson


Formulas can go anywhere on the same sheet.
If you want to use a new sheet then the original sheet name will have
to be added to each formula.
For example, if the original data is on Sheet1 then the formula for
extracting the Item#s to a different sheet becomes...

=INDIRECT("Sheet1!A"&ROW(1:1)*2-1)

If the original data is on a sheet with a sheet name that includes a
space character then the sheet name needs to be inside single quotes
eg 'My Sheet' and the formula would be...

=INDIRECT("'MySheet1'!A"&ROW(1:1)*2-1)

Then just fill the formulas down as far as needed.
Note that the formulas do require that the layout of the original data
is consistent meaning that Item#s and Purch Ord#s are always in odd
numbered rows while Descriptions, Qty rec’ds, Unit of Meass and Unit
Prices are always in even numbered rows

Ken Johnson
 
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
Permanently merge cells with text data w/o a formula? Chris Excel Discussion (Misc queries) 4 October 10th 07 02:27 PM
Merge cells with formula or macro? Joe M. Excel Discussion (Misc queries) 5 July 23rd 07 10:28 PM
mail merge excludes my headers and critical data in Word merge Nix Excel Discussion (Misc queries) 0 April 21st 06 08:35 PM
Merge =( formula should retain fraction type numbers after merge. Aubrey Excel Worksheet Functions 0 February 9th 06 07:37 PM
how do i get my mail merge to update the data source at each merge Steel_Monkey Excel Discussion (Misc queries) 0 November 30th 05 08:41 AM


All times are GMT +1. The time now is 12:24 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"