+ Reply to Thread
Results 1 to 4 of 4

Help with creating relative cells in formula

  1. #1
    Registered User
    Join Date
    06-01-2016
    Location
    Dublin
    MS-Off Ver
    2013
    Posts
    1

    Help with creating relative cells in formula

    Hi there,
    I'm hoping someone can help me please.

    This formula:

    =SUMIF($AM:$AM,"*May*",$I:$I)

    I want *May* to auto change to the next month (June). The cell range (column I) has many month references to different rows.

    Thanks
    Shane

  2. #2
    Registered User
    Join Date
    01-25-2016
    Location
    Ho Chi Minh City, Vietnam
    MS-Off Ver
    Office 2007, Office 2013
    Posts
    7

    Re: Help with creating relative cells in formula

    In an adjacent cell to the formula, you could enter "May", then drag that field down so the next month would appear. Then, update your formula to refer to that "May" cell and copy the formula down.

    After that, hide the column with the month names if you don't want it to be visible.

    Does this help?

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with creating relative cells in formula

    If you wanna auto change *May* this part

    you will have to give cell reference

    Try

    =SUMIF($AM:$AM,$A1$,$I:$I) highlighted part is month criteria which is situated at A1 cell now when you put June in A1 cell Sumif function will work for June.

    Hope this will help you
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Help with creating relative cells in formula

    If you are looking to use the current month name, try this...

    =SUMIF($AM:$AM,TEXT(TODAY(),"mmm"),$I:$I)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Autopopulating a formula to only sum cells with specific values relative to its position.
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2013, 04:31 PM
  2. Replies: 2
    Last Post: 10-25-2012, 03:57 AM
  3. Relative Cell References when creating VBA Macro for Chart
    By BHcristo in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-04-2010, 10:13 AM
  4. Relative cell references when creating VBA for Charts
    By BHcristo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2010, 04:05 PM
  5. Macro for creating named ranges from relative referencing
    By parodytx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2008, 01:00 AM
  6. [SOLVED] Relative cells in macro - and pasting a formula too!
    By in forum Excel General
    Replies: 4
    Last Post: 02-23-2006, 10:52 AM
  7. [SOLVED] Relative cells in macro - and pasting a formula too.
    By in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2006, 09:20 AM
  8. Creating Relative Links in Excel...
    By colleenh in forum Excel General
    Replies: 1
    Last Post: 06-28-2005, 05:47 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