+ Reply to Thread
Results 1 to 10 of 10

EXCEL Formula help - Possible Nested IF's

  1. #1
    Registered User
    Join Date
    05-19-2022
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    6

    EXCEL Formula help - Possible Nested IF's

    Hiya,

    I am trying to work something out but I am getting stressed.

    I've been at it for hours now.

    Maybe some angel can help.

    For Column Sale date actual, I am trying to see if Sale_Date contains a Value and is not Blank, If it is blank I want it to return blank, if it is not blank, then I want to see if Cancelled Status equals either Sale or Install in progress, and then return the Sale Date, otherwise return the Sale Date if that condition is not met.

    My attempt below does not work as the first row for example should return the Sale_Date:


    =IF($A2="",""(IF(OR($B2="Sale",$B2="Installation in Progress"),$A2,"")),$A2)

    Then I am trying to find the weeknumber in column D.
    Attached Files Attached Files

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

    Re: EXCEL Formula help - Possible Nested IF's

    hi,
    try this:

    =IF(C2<>"",SUM(IF(B2={"Installation in progress","sale"},C2)),"")

  3. #3
    Registered User
    Join Date
    05-19-2022
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: EXCEL Formula help - Possible Nested IF's

    Hi thank you for this,

    This still does not work as it is not returning the Sales Date when cancelled status is showing blank.

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

    Re: EXCEL Formula help - Possible Nested IF's

    So in both cases you want the sale date , no matter what the cancel status is
    "I want to see if Cancelled Status equals either Sale or Install in progress, and then return the Sale Date, otherwise return the Sale Date"

    =IF(C2<>"",C2,"")

  5. #5
    Registered User
    Join Date
    05-19-2022
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    6

    Question Re: EXCEL Formula help - Possible Nested IF's

    I guess what I am trying to do is merge 2 formulas:

    IF 'Sale Date' is Blank return blank, otherwise return Sale date and if Cancel status equals either Sale or Install in Progress, then Return Sale Date, ELSE return Blank .

    i.e. =if(A2="","",A2) and =IF(OR($B2="Sale",$B2="Installation in Progress"),$A2,"")

    I hope that makes sense.

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

    Re: EXCEL Formula help - Possible Nested IF's

    So you want the weeknumber of the date in column A...


    if there's a date in column A... or certain text appears in column B. Assuming that text can ONLY occur in column B IF there is a date in column A (and that WAS the case in your sample), you are going in circles for no good reason:

    =IF(A2<>"",WEEKNUM(A2),"")
    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

  7. #7
    Registered User
    Join Date
    05-19-2022
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    6

    Re: EXCEL Formula help - Possible Nested IF's

    HI Glenn,

    that helps with the Weeknumber, but I am still trying to workout the Sale Date issue as mentioned before.

    S x

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,179

    Re: EXCEL Formula help - Possible Nested IF's

    What do you want the result to be if B = "Quotation"? you also want A2 ?
    If so then it doesn't matter what value there is in column B as long as A is not empty you want A as the result.....

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

    Re: EXCEL Formula help - Possible Nested IF's

    Amend your samole to show your expected results... a non-working formula is of limited value.

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

    Re: EXCEL Formula help - Possible Nested IF's

    There si something fundamentally flawed with your logic.

    You said:

    For Column?*Sale date actual, I am trying to see if?*Sale_Date?*contains a Value and is not Blank,

    If it (sale date) is blank I want it to return blank, (so: if any is date present = return date)

    if it (sale date)is not blank,

    then I want to see if Cancelled Status equalseither?*Sale?*or?*Install in progress, and then return the?*Sale Date, otherwise return the?*Sale Date?*if that condition is not met. This is saying... If Cancelled Status equals "Sale" or "IiP"... return the sale date... otherwise return the sale date.

    All conditions of Cancelled Status mean return the sale date. It is NOT a criterion if there is only one possible outcome!!

    So at a desparate last guess...

    =IF(OR(A2<>"",B2<>""),A2,"")

+ 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. Excel 2007 Nested IF Formula
    By stef87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-01-2016, 11:03 AM
  2. [SOLVED] Excel formula nested in Macro
    By rdowney79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2013, 04:44 PM
  3. [SOLVED] Excel nested formula?
    By SAMPCUK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2012, 07:13 PM
  4. Excel IF Nested Formula
    By hamburg18w in forum Excel General
    Replies: 2
    Last Post: 03-15-2011, 11:41 AM
  5. excel formula with nested if
    By nidabp in forum Excel General
    Replies: 11
    Last Post: 05-06-2010, 04:04 AM
  6. Nested IFs In Excel Formula
    By Sean04 in forum Excel General
    Replies: 2
    Last Post: 02-04-2010, 05:37 PM
  7. [SOLVED] Excel nested IF formula question
    By hanesds@hotmail.com in forum Excel General
    Replies: 6
    Last Post: 11-10-2005, 01:15 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