+ Reply to Thread
Results 1 to 7 of 7

Copy heading to rows below

  1. #1
    Forum Contributor
    Join Date
    08-16-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    109

    Copy heading to rows below

    Hi could anyone help with the enclosed file.

    I have an export of data as shown in the first tab called 'Raw data' which shows 3 machines with audit details, however to allow me to filter and sort I would like the machine name in C1, C19 & C31 to show in row A against each of the total rows (See 'Result Required' tab)

    I would like the same to happen to the machine ID in F1, F19 & F31 to show in column B again against each total row.

    I presume an 'IF' type formula may help but as each machine has different numbers of rows as shown, I have struggled to find an answer.

    This is just a sample but the real file could have 200 plus machines ranging from 2 to 20 plus total rows per machine.

    Any help much appreciated.

    G
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Copy heading to rows below

    Insert a blank row at the top of your data, then you can use this formula in A2:

    =IF(ISNUMBER(F2),C2,A1)

    and this one in B2:

    =IF(ISNUMBER(F2),F2,B1)

    Then copy both formulae down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Copy heading to rows below

    A6
    Please Login or Register  to view this content.
    b6
    Please Login or Register  to view this content.
    try the above and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy heading to rows below

    Another way: in A1 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy heading to rows below

    Or this in A1 filled down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and this in B1 filled down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-16-2009
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: Copy heading to rows below

    Hi All,

    Many thanks for all your speedy responses and all of the options will work perfectly for what I want.

    Thanks Again.

    Garry

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Copy heading to rows below

    You're welcome. Thanks for the feedback and rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Merging two rows under one row heading
    By dearprudence101 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-08-2015, 08:06 AM
  2. Copy and add in with Heading 2 Format
    By TLRam1 in forum Excel General
    Replies: 4
    Last Post: 04-03-2014, 12:42 PM
  3. Heading Rows Repeat
    By quikgun15 in forum Word Formatting & General
    Replies: 5
    Last Post: 10-20-2011, 11:33 AM
  4. Delete repeating heading rows
    By xyz123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2008, 06:32 AM
  5. Loop through copy heading
    By sammar12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2008, 08:49 PM
  6. [SOLVED] copy heading to each row
    By Scott in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2005, 02:05 PM
  7. [SOLVED] copy heading to row
    By Scott in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2005, 03:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1