+ Reply to Thread
Results 1 to 5 of 5

When I see the answer I'll kick myself.

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    When I see the answer I'll kick myself.

    Guys,

    I don't know why I can't work this out, tired maybe.

    I've the below formula which works except for the below reason:

    =IF(COUNTIF(B4:C4,">=1"),IF(C4<$B$1,1,IF(B4>$B$1,0,($B$1-B4)/(C4-B4))))

    If B4:C4 count is 1 or greater it correctly performs the above function.

    Where it falls down is if B4 and C4 are blank as then the formula returns false.

    I think I need an iferror added in so the false returns blank.

    Can you please help,

    Pete if this is you again I apologise!

    Regards,

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: When I see the answer I'll kick myself.

    All you need to do is add the value to return for a false result for the first IF.

    =IF(COUNTIF(B4:C4,">=1"),IF(C4<$B$1,1,IF(B4>$B$1,0,($B$1-B4)/(C4-B4))), "")
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: When I see the answer I'll kick myself.

    ...and make sure you follow the rules for naming your threads properly.

    https://www.excelforum.com/forum-rul...rum-rules.html
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: When I see the answer I'll kick myself.

    ... and we will see movie how you kick yourself ?

  5. #5
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    Re: When I see the answer I'll kick myself.

    Norie, thank you! I'm almost positive I tried that but I obviously didn't.

    Special K - understood.

    Sandy - I've already kicked myself, the bruise is quite big - next time a video.

+ 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. Need One Dropdown List to Kick off Another
    By Xbwalker in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2015, 03:56 AM
  2. VBA to kick off audio or jpeg
    By JonathanB2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-11-2014, 01:12 PM
  3. Kick out Inactive users except in read only
    By StephanieLilly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2013, 02:16 PM
  4. if function for free kick times
    By molemeister in forum Excel General
    Replies: 4
    Last Post: 04-21-2010, 09:10 PM
  5. if function for free kick times -
    By molemeister in forum Excel General
    Replies: 1
    Last Post: 04-21-2010, 08:58 PM
  6. Kick Access users out via Excel VBA
    By GeorgY in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2009, 02:22 PM
  7. Kick Users Out of Sheet
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2007, 05:34 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