+ Reply to Thread
Results 1 to 5 of 5

Offset Based on Conditions

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Somewhere, Anywhere
    MS-Off Ver
    Excel 2016
    Posts
    82

    Offset Based on Conditions

    Hello,

    I am trying to create an offset function that changes the tables (highlighted in yellow) based on conditions in E6 and E7. Can someone please help me? I have attached a template below.

    Thanks in advance.
    Attached Files Attached Files

  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,363

    Re: Offset Based on Conditions

    It would help if the heading on your tables were consistent. You have months as text in your summary but numbered headings 1-1, 1-2 in the "Budgeted" sheet
    where 2 values appear to be summed in the summary.

    Can you change heading to dates (01/01/2015) : year is not important. For example 1-1 could be 01/01/2015 and 1-2 02/01/2015.

    Please use dates not text. The headings can be formatted as "Jan" etc.

  3. #3
    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,363

    Re: Offset Based on Conditions

    See the attached:

    I have changed headings to dates but formatted as your original. Also removed merged cells as these cannot be used in the formulae.

    2 similar formulas used:

    First table....

    =SUMPRODUCT((Budgeted!$A$2:$A$7=TaskOrderSelection)*(Budgeted!$B$2:$B$7=$G5)*(MONTH(Budgeted!$C$1:$Z$1)=MONTH(H$4))*(Budgeted!$C$2:$Z$7))

    Second table:

    =SUMPRODUCT((Budgeted!$A$12:$A$26=TaskOrderSelection)*(Budgeted!$B$12:$B$26=$G9)*(Budgeted!$C$12:$Z$26)*(MONTH(Budgeted!$C$11:$Z$11)=MONTH(H$8)))

    Note the last formula uses cells G9 to G14 rather than E7
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-14-2013
    Location
    Somewhere, Anywhere
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Offset Based on Conditions

    Thank you! Wish I could be an Excel expert like you!

  5. #5
    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,363

    Re: Offset Based on Conditions

    Thank you for the feedback. We were all beginners once so just keep practising and use this forum as an aid. I learn a lot from the real experts here.

+ 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. Offset based on Match x 2 - Help
    By thussain in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-03-2014, 08:15 AM
  2. AVERAGEIF with OFFSET conditions
    By chadrt78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2014, 05:24 PM
  3. VBA help needed to fill cell values (offset values) by matching various conditions
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2013, 02:14 PM
  4. calculation using reference to cells based on conditions
    By shrimic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2012, 12:32 PM
  5. Return cell value offset from max with conditions
    By Phil_V in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2010, 09:14 AM
  6. SUMIF with multiple conditions that are offset
    By DPGDPG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2010, 10:45 AM
  7. Counting based upon 2 conditions that are text based
    By walkerdayle in forum Excel General
    Replies: 7
    Last Post: 08-21-2006, 08:35 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