+ Reply to Thread
Results 1 to 3 of 3

How do I prevent a formula using a part of the header from recalculating to use the line b

  1. #1
    Registered User
    Join Date
    06-04-2015
    Location
    Columbia, MO
    MS-Off Ver
    2010
    Posts
    19

    How do I prevent a formula using a part of the header from recalculating to use the line b

    How do I prevent a formula using a part of the header from recalculating to use the line below it when I drag the formula down to be used on the next line?

    I’m using the formula below to add a bunch of cells into a single cell. For example: each cell lists information about a single traveler’s trip; a single row will have all the information necessary. In the formula below let’s assume

    S16 contains the traveler’s name “John Smith”
    K16 contains the dates of travel “8/25/15-8/27/15”
    D16 contains the primary method of travel “AIR”
    L16 contains the secondary method of travel “POV”
    M16 contains the event title “Charge Card Training”
    P2 is a column header that contains the words “Travel Approved”
    P16 contains the date the travel was approved “6/30/15

    =S16&","&" "&K16&","&" "&D16&" "&L16&","&" "&M16&","&" "&P2&" "&P16

    So the cell that contained the formula would contain:

    John Smith, 8/25/15-8/27/15, AIR, POV, Charge Card Training, Travel Approved 6/30/15

    (Let’s assume the next traveler is traveling on the same date)

    This works fine for the first row but when I drag the formula down to use it in the next row (for the next traveler), “P2” changes to P3 and now instead of saying “Travel Approved 6/30/15” on row 2 like it should, it says “6/30/15 6/30/15”.

    How do I fix this? Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: How do I prevent a formula using a part of the header from recalculating to use the li

    You need to make the P2 reference absolute. $P$2

    Then drag down.

    Windy

  3. #3
    Registered User
    Join Date
    06-04-2015
    Location
    Columbia, MO
    MS-Off Ver
    2010
    Posts
    19

    Re: How do I prevent a formula using a part of the header from recalculating to use the li

    Perfect! That did the trick! Thank you!

+ 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. [SOLVED] Excel 2007 VBA - Multiple line header adds empty line in between
    By ChrisPatterson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2014, 08:54 AM
  2. Replies: 2
    Last Post: 11-14-2012, 08:59 AM
  3. Replies: 1
    Last Post: 06-15-2006, 02:25 PM
  4. Prevent header from printing on 1st page?
    By Bubba B in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 03:15 PM
  5. [SOLVED] How do I prevent a header from scrolling?
    By Ray Stevens in forum Excel General
    Replies: 2
    Last Post: 03-13-2006, 05:15 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