+ Reply to Thread
Results 1 to 6 of 6

Help with a IF Formula

  1. #1
    Registered User
    Join Date
    09-24-2018
    Location
    Texas
    MS-Off Ver
    365
    Posts
    57

    Help with a IF Formula

    Hey Guys,

    Appreciate all the support with excel!

    Need help with this formula, and maybe iv laid it out incorrectly..

    =IF(Y4="Complete"&AE4="1","Shipped",IF(Y4="Complete"&AE4="0","Ready not Shipped",IF(Y4="Ordered"&DD4="Complete","In-Process",IF(Y4="Ordered"&DD4="0","Not Started",""))))

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Help with a IF Formula

    The & symbol is used for joining two text strings together, so your formula does not make any sense. I think you want to do something like this:

    =IF(AND(Y4="Complete",AE4="1"),"Shipped",IF(AND(Y4="Complete",AE4="0"),"Ready not Shipped",IF(AND(Y4="Ordered",DD4="Complete"),"In-Process",IF(AND(Y4="Ordered",DD4="0"),"Not Started",""))))

    You should also come up with a better thread title than the one you have now.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Help with a IF Formula

    try it this way...
    =IF(AND(Y4="Complete",AE4="1"),"Shipped",IF(AND(Y4="Complete",AE4="0"),"Ready not Shipped",IF(AND(Y4="Ordered",DD4="Complete"),"In-Process",IF(AND(Y4="Ordered",DD4="0"),"Not Started",""))))
    [not tested]
    Now, if your values in quotes are actually numbers and not text then drop the quotes around the numbers such as AE4=1 instead of AE4="1".
    you can test what they are by putting =ISNUMBER(AE4) in a cell and if it returns false then it is text, if it returns true then it is a number and the quotes should be dropped.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    09-24-2018
    Location
    Texas
    MS-Off Ver
    365
    Posts
    57

    Re: Help with a IF Formula

    Thanks guys, worked perfectly.. I had numbers in certain cells, dropped the quotes and it worked perfectly.. Not familar with IF's.. Learning them as I go.. IF(AND allows multiple logical expressions.. Got it. Thanks again.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help with a IF Formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    In future, please make your thread titles more detailed, telling us what you are trying to achieve with the formula. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Help with a IF Formula

    Glad we could help. And thank you for the rep!
    And, thread titles are always important, please keep that in mind too.

+ 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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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