Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Label colomn with the headers

I have big like following

Cables and Cords
R9858 Round Gray Cable
HH942 Optical Drive Serial ATA
NJ889 Thermal Sensor Cable
MK154 Cable Assembly for

Ribbon
X9259 Ribbon Cable for DIAG
FH439 Cable Assembly for Flex-Bay
5120P Power Cord, 6FT,
5R598 Power Cord, 6FT,
MK524 Hard Drive Serial



there is a big file with different headings


I need to delete the heading(cables and cords, Ribbon many more) and
put in the same row next to each record like following

R9858 Round Gray Cable Cables and Cords
HH942 Optical Drive Serial ATA Cables and Cords
NJ889 Thermal Sensor Cable Cables and Cords
MK154 Cable Assembly for Cables and Cords
X9259 Ribbon Cable for DIAG Ribbon
FH439 Cable Assembly for Flex-Bay Ribbon
5120P Power Cord, 6FT, Ribbon
5R598 Power Cord, 6FT, Ribbon
MK524 Hard Drive Serial Ribbon

Any macro for it?

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Label colomn with the headers

If your setup is just like you showed, you can do it with a formula
pretty fast.

In C1:
=IF(A1="","",IF(B1="",A1,INDIRECT("C"&ROW()-1)))

Copy down all the way to the end. Then copy C column and Paste Values.
You can get rid of the extra lines fastest by doing a Sort on the B
column. It should group all the old "header" rows and you can delete
them quickly.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Label colomn with the headers

Thanks alot.

I really appreciate your time and effort into my question.



On Dec 30, 1:59*pm, Spiky wrote:
If your setup is just like you showed, you can do it with a formula
pretty fast.

In C1:
=IF(A1="","",IF(B1="",A1,INDIRECT("C"&ROW()-1)))

Copy down all the way to the end. Then copy C column and Paste Values.
You can get rid of the extra lines fastest by doing a Sort on the B
column. It should group all the old "header" rows and you can delete
them quickly.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Label colomn with the headers

Glad to be of 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
adding cells in a colomn mjd23 New Users to Excel 2 January 7th 08 11:45 PM
CAN I SEPARATE SURNAME AND FIRST NAME IN 1 COLOMN INTO 2 COLOMNS? findling Excel Discussion (Misc queries) 1 June 21st 07 05:31 AM
colomn to row Robert helou Excel Discussion (Misc queries) 1 August 10th 06 02:57 PM
Colomn of strings, how to count each string with "abc" OR "def" Tommy T Excel Worksheet Functions 8 September 5th 05 04:57 PM
sum of colomn.. Zadig Galbaras Excel Discussion (Misc queries) 2 February 7th 05 07:15 PM


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