+ Reply to Thread
Results 1 to 4 of 4

ISBLANK & OFFSET Formula

  1. #1
    Forum Contributor
    Join Date
    08-20-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010, 2016, 2019
    Posts
    110

    ISBLANK & OFFSET Formula

    Greetings,

    I am using the ISBLANK formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and it is still showing values on the Project_Plan tab.

    Hoping that this will also fix the rows highlighted with Conditional Formatting where there are no values, as it currently highlight the "empty" rows as well.

    Any assistance would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: ISBLANK & OFFSET Formula

    your 2nd arg in the OFFSET function doesn't make sense. you're giving a cell address, but yet on the following page, MS says it is supposed to be a number. num of rows of offset:

    https://support.microsoft.com/en-us/...e-b4d906d11b66

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: ISBLANK & OFFSET Formula

    Project_Data!E10 contains the text ABC, so it's not blank, so your formula should be evaluating the OFFSET term.

    How do you believe conditional formatting isn't working in Project_Plan!C10:P24, Project_Plan!Q10:AW24 and other cells? For instance, each cell in Project_Plan!M10:M24 appears to determine the conditional format for all columns in the same row for Project_Plan!C10:P24. Cell Project_Plan!M20 evaluates correctly as 0, and that means Project_Plan!C20:P20 should have dark grey background.

    The formula in Project_Plan!M20 is =IF(ISBLANK(Project_Data!$E20),"",OFFSET(Project_Data!$L20,$B$10,0)), and Project_Data!E20 contains the text Task 9, so it's not blank, so the OFFSET result should be returned, that's the value of cell Project_Data!$L64, which is blank, but Excel converts the value of blank cells to 0 in this type of situation.

    Please explain what you're trying to achieve. It isn't completely obvious from your formulas. I can guess that what you need is more ISBLANK calls, specifically for Project_Data!C20 you need to change the formula from =IF(ISBLANK(Project_Data!$E20),"",OFFSET(Project_Data!$E20,$B$10,0)) to

    =IF(ISBLANK(Project_Data!$E20),"",IF(ISBLANK(OFFSET(Project_Data!$E20,$B$10,0)),"",OFFSET(Project_Data!$E20,$B$10,0)))

    That said, using volatile OFFSET calls in LOTS of formulas can slow down recalculation perceptibly, sometimes annoyingly so. You could use INDEX instead. The immediately previous formula could be changed to

    =IF(ISBLANK(Project_Data!$E20),"",IF(ISBLANK(INDEX(Project_Data!$E:$E,ROWS(C$1:C20)+$B$10)),"",INDEX(Project_Data!$E:$E,ROWS(C$1:C20)+$B$10)))

    E20 is the same cell as INDEX($E:$E,ROWS(C$1:C20)), and OFFSET(E20,$B$10,0) is the same cell as OFFSET(INDEX($E:$E,ROWS(C$1:C20)),$B$10,0) which is in turn the same cell as INDEX($E:$E,ROWS(C$1:C20)+$B$10). INDEX is nonvolatile, so won't affect recalculation performance as severely as OFFSET can.

  4. #4
    Forum Contributor
    Join Date
    08-20-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2010, 2016, 2019
    Posts
    110

    Re: ISBLANK & OFFSET Formula

    Thanks a million for the indepth explination.

    This did the trick
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If I use the INDEX formula, it doesn't reference the from the top row "ABC, only starting with "Task 9", even if I change the formula to the below, it starts with "Task 4"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Jacolene; 10-14-2020 at 03:23 AM.

+ 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] IF formula not working =IF(NOT(ISBLANK(M3)),"",IF(ISBLANK(L3),"",TODAY()-L3))
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2014, 02:37 PM
  2. ISBLANK formula
    By johnny_p in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2013, 11:44 AM
  3. Excel 2007 : Help with a IF/IsBlank Formula
    By Chips Reynolds in forum Excel General
    Replies: 4
    Last Post: 04-06-2012, 09:22 AM
  4. 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
  5. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  6. Hourlist and VBA isblank with offset to determine days.
    By prefix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2010, 03:54 AM
  7. for each foundcell if offset isblank = false
    By prefix in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-10-2010, 10:12 AM
  8. Using IsBlank In Formula
    By scotfitz in forum Excel General
    Replies: 2
    Last Post: 09-07-2008, 05:55 PM

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