+ Reply to Thread
Results 1 to 3 of 3

Updating Formulas to use Column Names

  1. #1
    Forum Contributor
    Join Date
    03-19-2016
    Location
    Chicago, IL
    MS-Off Ver
    Office 2016 Professional
    Posts
    388

    Updating Formulas to use Column Names

    Formula 1:

    =IF(COUNTIFS($B$2:$B2,$B2,$T$2:$T2,$T2)>1,0,1)

    Column B Column Name: Order Number
    Column T Column Name: Job Number

    Formula 2:

    =SUMIF($B$2:$B$3829,$B3819,$BW$2:BW$3829)

    Column B Column Name: Order Number
    Column BW Column Name: Job Count

    The above formula is working as expected in the above formulas, but how would I go about updating the formula to use the actual column names (I.E Order Number), not the actual column letter (I.E. B).

    Please note that my workbook is re-freshable, meaning that, in the above example, the formula '2' is dynamic....the column 3829 will change to other values (i.e. 3829 or 3831 or 2999, etc.) depending on the number of rows.

  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: Updating Formulas to use Column Names

    To do so you'll need to convert your data to a table by selecting all data and using Insert->Table.

    =SUMIF(Table1[OrderNumber],"batman",Table1[JobNumber])

    The header fields will name themselves when you select the data for the formula, and will autoadjust their range as data is added or removed.
    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!

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,571

    Re: Updating Formulas to use Column Names

    You could define some Dynamic Named Ranges, or convert your data to a Structured Table.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Replies: 2
    Last Post: 12-08-2015, 03:01 PM
  2. Excel shows column's names in formulas instead of exact cells
    By GRG Stevan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-08-2015, 04:33 AM
  3. Replies: 21
    Last Post: 08-18-2014, 06:44 PM
  4. Excel 07: Pivot Tables/Updating Column Header Names
    By fizzziks in forum Excel General
    Replies: 1
    Last Post: 03-19-2010, 09:41 AM
  5. Updating file names
    By mintys247 in forum Excel General
    Replies: 2
    Last Post: 06-07-2006, 07:55 AM
  6. Updating Range Names
    By ExcelUser777 in forum Excel General
    Replies: 4
    Last Post: 03-30-2006, 04:25 PM
  7. Updating Names
    By BLM in forum Excel General
    Replies: 5
    Last Post: 01-13-2005, 12:06 AM

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