+ Reply to Thread
Results 1 to 5 of 5

Replacing offset with non-volatile functions

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Replacing offset with non-volatile functions

    I'm looking to replace offset with non-volatile functions. I use it in sumif formulas to find the column or row to sum, for example,

    =sumif(A:A,"yes",offset(A:A,0,match(1:1,"December",0)-1))

    Index works okay if I am looking for a row, but what can I use if I am looking for a column like the above formula?

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Replacing offset with non-volatile functions

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Replacing offset with non-volatile functions

    Try something like this...

    Data Range
    A
    B
    C
    D
    E
    1
    North
    East
    South
    West
    2
    No
    52
    36
    91
    75
    3
    Yes
    53
    4
    44
    60
    4
    No
    50
    81
    31
    51
    5
    Maybe
    96
    89
    21
    1
    6
    Maybe
    85
    79
    28
    43
    7
    Yes
    22
    6
    31
    96
    8
    Maybe
    24
    40
    24
    4
    9
    Yes
    38
    15
    8
    13
    10
    Maybe
    42
    29
    2
    3
    11
    12
    Yes
    South
    83


    This formula entered in C12:

    =SUMIF(A2:A10,A12,INDEX(B2:E10,0,MATCH(B12,B1:E1,0)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    01-19-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Replacing offset with non-volatile functions

    Great, that's perfect, thanks very much

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Replacing offset with non-volatile functions

    You're welcome. Thanks for the feedback!

+ 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. How to replace Offset() with non-volatile formulas?
    By ceeyee in forum Excel General
    Replies: 14
    Last Post: 12-06-2018, 06:40 PM
  2. [SOLVED] what are volatile functions
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-05-2015, 04:03 AM
  3. Volatile Functions needed for Roulette
    By Nickmsi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-06-2013, 07:57 PM
  4. Offset function isn't working - volatile reference
    By MrPez in forum Excel General
    Replies: 3
    Last Post: 08-20-2010, 05:12 AM
  5. Trying to replace Offset() with a non volatile formula
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-05-2009, 02:09 PM
  6. Replies: 3
    Last Post: 03-27-2009, 11:29 PM
  7. Volatile functions across books
    By jcarlosd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2008, 05:46 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