+ Reply to Thread
Results 1 to 6 of 6

IF statement using 1,0 within formula

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    Houston
    MS-Off Ver
    2010 and 2013
    Posts
    28

    IF statement using 1,0 within formula

    I need some help figuring out someone else's formula/worksheet that I have taken over.

    On attached worksheet example:
    • Filter on column E (Job Status) and choose 'PSI Confirmed', 'In Progress', and 'Cust Confirmed'.
    • Filter on column D (Job End Date). Choose 'October 21, 2020'.
    • Column I (10/21/2020) SHOULD reflect a count of 'Total Number of Techs' for any of these jobs that are going to occur between the 'Job Start Date' and 'Job End Date'.
    • The formula in columns I10-I177 through CB10-CB177 should reflect a count of 'Total Number of Techs'.

      Example in cell I32:
      =IFERROR(IF(OR($D32="PSI Confirmed",$D32="In Progress",$D32="Cust Confirmed"),IF($A32<>"",IF(I$9<=($C32),IF(I$9>=($B32),1,0),0)*$E32,""),0),0)
    • The red highlighted part of above formula should be stating that if the column Date Header (10/21/2020) is greater than OR EQUAL to 'Job Start Date', enter a 1 (true), if not, enter a 0 (false). Then, the value would be multifplied by the 'Total Number of Techs'.
    • All the cells are multiplying by 0 for selected cells. They should be multiplying by 1.

    Any help/insight would be greatly appreciated!!
    Attached Files Attached Files
    Last edited by cs566; 10-21-2020 at 12:08 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: IF statement using 1,0 within formula

    Hi
    Why did you take the function =NOW() and not today()

    I think that Now includes hour....so that your condition in column I doesnt meet

  3. #3
    Registered User
    Join Date
    02-02-2017
    Location
    Houston
    MS-Off Ver
    2010 and 2013
    Posts
    28

    Re: IF statement using 1,0 within formula

    Well, you are awesome. I thought it would be easy, but didn't think of that...
    Thank you so much!
    Have a great day!

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: IF statement using 1,0 within formula

    You're welcome!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: IF statement using 1,0 within formula

    Hahaha. I spent too long playing with the formula, I didn't notice the NOW() until rather late in the day.

    This is a slightly simpler formula:
    =IFERROR(IF(OR($D32={"PSI Confirmed","In Progress","Cust Confirmed"}),IF(AND($A32<>"",I$9>=$B32,I$9<=$C32),$E32,0),0),0)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    02-02-2017
    Location
    Houston
    MS-Off Ver
    2010 and 2013
    Posts
    28

    Re: IF statement using 1,0 within formula

    Thank you for your help.
    I did same thing you did... didn't notice the NOW().

    I will try out your suggestion on simplier formula.
    Thanks again!

+ 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. translate an ifs statement into an if statement - one formula
    By Excelnew200 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2019, 11:37 AM
  2. [SOLVED] IF statement clause and SUMIF statement formula help!!!!
    By djmatok in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 10-28-2015, 04:48 PM
  3. Statement to return formula to the next row down, if formula's result if false?
    By AlphaRaveNZ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2015, 10:54 PM
  4. Statement to return formula to the next row down, if formula's result if false?
    By AlphaRaveNZ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2015, 10:54 PM
  5. [SOLVED] Glitched formula? IF statement does not work because of a formula in a reference cell
    By Tworksheets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 02:16 PM
  6. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  7. Replies: 1
    Last Post: 07-20-2006, 03:05 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