+ Reply to Thread
Results 1 to 2 of 2

Copy column sub-headings to inserted column via formula

  1. #1
    Registered User
    Join Date
    12-13-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    3

    Copy column sub-headings to inserted column via formula

    I am looking for some help with the attached excel file. I'd like to be able to copy the files subtotal headings from column A into column B via a formula. The attachment is an excerpt of a trial balance that I'm working with. If I only had to do this once I would just copy and paste, but I just started a new job and every tiral balance that I'm going to be working with will be exported in the same format. The attachment contains additional information and an example of what I'd like the final product to look like. Any help is appreciated!

    Thanks,

    David
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy column sub-headings to inserted column via formula

    This formulas assumes 1000 rows or less per subtotal.

    Plop this into B8 and copy down as far as needed.

    =IF(AND(NOT(ISBLANK(A9)),ISNUMBER(C8)),INDEX(A8:A1000,MATCH("C"&"*",A8:A1000,0)),"")

    Feel free to adjust the range to less rows.

    Do not use absolute references (meaning that when the formula is copied down 30 rows, the formula in B29 will roll to:

    =IF(AND(NOT(ISBLANK(A30)),ISNUMBER(C29)),INDEX(A29:A1021,MATCH("C"&"*",A29:A1021,0)),"")
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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. Create macro to copy data using column headings
    By zkhan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2013, 02:01 AM
  2. Copy/Paste filtered data from one sheet to another with only matched column headings
    By archerrc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2013, 05:00 PM
  3. Replies: 2
    Last Post: 07-01-2012, 12:20 PM
  4. [SOLVED] Copy Column headings to Rows
    By DTTODGG in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-14-2005, 12:10 PM
  5. Replies: 0
    Last Post: 01-18-2005, 10:06 PM

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