Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Move data from one line to another

I have two stores. I have a spreadsheet generated by company software that
shows inventory at both stores, but on separate lines. For example:

Store Item Qty Qty Store 2
1 A 4 ?
2 A 6

I want to move the 6 from the second line to the ? on the first line. I
can then sort by Store and delete all records from Store 2 and end up with:


Store Item Qty Qty Store 2
1 A 4 6


Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Red Red is offline
external usenet poster
 
Posts: 48
Default Move data from one line to another

I think this might work for you.

On your first row of data, in the cell directly under the heading Store 2
Qty, type the following formula:

=IF(B3=B2,OFFSET(B3,,1),""). This assumes your headers are in row 1, and
your qyt store 2 is in column D. Basically, if the item number in the
second row matches the item number of the first row, it'll go one column to
the right of the item number in row 2 and put it in the cell where the
formula is in row 1. If the item numbers do not match, then the qty store 2
cell will remain blank. You can copy the formula down through your entire
data set, and then delete the store 2 rows when complete.

Hope this helps.

--
Just a fellow Excel user here to help when I can.....


"Chip" wrote:

I have two stores. I have a spreadsheet generated by company software that
shows inventory at both stores, but on separate lines. For example:

Store Item Qty Qty Store 2
1 A 4 ?
2 A 6

I want to move the 6 from the second line to the ? on the first line. I
can then sort by Store and delete all records from Store 2 and end up with:


Store Item Qty Qty Store 2
1 A 4 6


Can anyone help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default Move data from one line to another

I tested your suggestion. It worked great on the first two lines of data,
but as I pulled the formulas down the page, in lines 3 and 4, the only thing
that happened was C4 moved over to D4 (not C5 moving up to D4) and so forth
down the page. What did I do wrong?

"Red" wrote:

I think this might work for you.

On your first row of data, in the cell directly under the heading Store 2
Qty, type the following formula:

=IF(B3=B2,OFFSET(B3,,1),""). This assumes your headers are in row 1, and
your qyt store 2 is in column D. Basically, if the item number in the
second row matches the item number of the first row, it'll go one column to
the right of the item number in row 2 and put it in the cell where the
formula is in row 1. If the item numbers do not match, then the qty store 2
cell will remain blank. You can copy the formula down through your entire
data set, and then delete the store 2 rows when complete.

Hope this helps.

--
Just a fellow Excel user here to help when I can.....


"Chip" wrote:

I have two stores. I have a spreadsheet generated by company software that
shows inventory at both stores, but on separate lines. For example:

Store Item Qty Qty Store 2
1 A 4 ?
2 A 6

I want to move the 6 from the second line to the ? on the first line. I
can then sort by Store and delete all records from Store 2 and end up with:


Store Item Qty Qty Store 2
1 A 4 6


Can anyone help?

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
how do I move data to a new line in a cell after a comma? Jeffro Excel Worksheet Functions 9 October 5th 07 08:14 AM
Move data line from end of page 1 to page 2 sweeta1974 Charts and Charting in Excel 0 June 19th 06 02:41 PM
If a criteria isn't met, move to the next line.... Martc Excel Discussion (Misc queries) 2 March 22nd 06 01:21 PM
Line and text box move by themselves David Brown Charts and Charting in Excel 1 August 17th 05 03:16 PM
Move equations from line to line automatically Kingsobes Excel Discussion (Misc queries) 1 August 4th 05 07:57 PM


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