+ Reply to Thread
Results 1 to 2 of 2

Stop cell reference from changing

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    Mississauga Ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Stop cell reference from changing

    I have a table with dates in Row 1 and headings in Column A. Column B contains the formula =SUMIF(C2:J2, ">=" &B2,C3:F3) which calculates the total of columns C3:F3. Every day I insert a new Column C. By doing this the formulas in Column B changes to =SUMIF(D2:J2, ">=" &B2,D3:F3). I don't want the formula to change as the new data doesn't get calculated.
    I've seen a post which mentions Index and Indirect but I couldn't see how/where I would use these functions.
    thank you in advance

    P.S.
    Minutes after posting I think I figured it out.
    I just have to put =SUMIF(Indirect("C2:J2"),">="& B2, Indirect("C3:F3"))
    This looks like it's working.
    Last edited by ruggedcashew; 01-27-2012 at 03:33 PM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Stop cell reference from changing

    Hi,

    you could try INDIRECT

    =SUMIF(INDIRECT("C2:J2"), ">=" &B2,INDIRECT("C3:F3"))


    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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