+ Reply to Thread
Results 1 to 5 of 5

Offset formula not working together with if

  1. #1
    Registered User
    Join Date
    01-09-2020
    Location
    belgium
    MS-Off Ver
    2016
    Posts
    2

    Post Offset formula not working together with if

    Hi,

    In the file attached I'm not able to make Offset work properly together with the if statement.
    The idea is to have a dynamic range based on the month, if that month contains half day of working it needs to add 0,5
    After analyzing the issue seems to be in the offset part more exactly in the OFFSET width part, where if statement has been applied

    anhy help solving the #value issue is more then welcome, been breaking my had on this one for some time
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Offset formula not working together with if

    Giving numbers and an expected result would be helpful in getting a solution

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Offset formula not working together with if

    why do you use offset?
    it is better to use a sorted table and lookup
    =SUMPRODUCT(LOOKUP($F3:$N3,$B$2:$C$8))

    btw, wb looks very familiar
    Attached Files Attached Files

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Offset formula not working together with if

    1. Because of if it is array formula and must be finished by Ctrl+Sift+Enter
    2. However Offset is volatile and better to replace OFFSET($A6;0;31*(SelectedMonth-1)+3;1;31) by INDEX(5:5;31*(SelectedMonth-1)+3):INDEX(5:5;31*(SelectedMonth)+3)
    3 For whole year =SUMPRODUCT((D5:NK5<>"")/((D5:NK5=$NZ$13)+(D5:NK5=$NZ$14)+1)*($D$1:$NK$1))

  5. #5
    Registered User
    Join Date
    01-09-2020
    Location
    belgium
    MS-Off Ver
    2016
    Posts
    2

    Re: Offset formula not working together with if

    Thanks BMV working great now

+ 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. Made some changes, formula stopped working (using MATCH and OFFSET)
    By new guy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2019, 11:00 PM
  2. Replies: 3
    Last Post: 07-29-2017, 04:32 AM
  3. Offset Formula - Not working
    By excelenergy in forum Excel General
    Replies: 3
    Last Post: 05-07-2015, 05:54 PM
  4. [SOLVED] Offset, Index, Match formula with dates inconsistently working
    By David Brown in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-31-2013, 04:12 PM
  5. Reformatting - insert formula with offset, then offset to next cell
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2011, 05:41 AM
  6. Offset now working?
    By sleah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2005, 01:57 AM
  7. Offset Not Working
    By sleah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2005, 05:56 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