+ Reply to Thread
Results 1 to 8 of 8

Need a formula which will show yes or no

  1. #1
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Need a formula which will show yes or no

    Hi guys!

    I am creating a file in which i will show Item Quantity and than Status of Item.

    Now i need a formula; if quantity is available and status not provided than it will show NO or a specific text.

    Sample is attached.
    Attached Files Attached Files
    Last edited by Imran Magsi; 06-02-2016 at 04:22 AM.

  2. #2
    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,987

    Re: Need a formula which will show yes or no

    No sample attached ...
    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.

  3. #3
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Need a formula which will show yes or no

    attached now

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Need a formula which will show yes or no

    Try

    G5=IF(AND(ISNUMBER(E5),ISBLANK(F5)),"NO","YES")
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Need a formula which will show yes or no

    Above mentioned formula is showing YES where both cells are blank and NO where 0 in quantity with blank status. and if quantity is blank and status filled than also it is showing YES.

    what if both are blank and/or Quantity is 0 with blank or filled status.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Need a formula which will show yes or no

    Perhaps

    =IF(AND(E5="",F5=""),"",IF(E5>=1,IF(ISTEXT(F5),"Yes","No"),"No"))

  7. #7
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Need a formula which will show yes or no

    It will looks like this

    If Quantity 1 and Status Provided it will show YES
    If Quantity 0 or Blank and status provided it will Show NO
    If Quantity 1 and status not provided it will show NO
    If both Quantity and Status are blank or 0 than it will show nothing or -

    Hope you understand

  8. #8
    Forum Contributor
    Join Date
    02-10-2016
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    173

    Re: Need a formula which will show yes or no

    this worked as i want

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Need to add to my formula so if a cell is blank the formula doesn't show
    By Rebeccak28 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2015, 05:22 AM
  2. [SOLVED] Need help with formula not working only show the formula in cell
    By Masekind in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2014, 08:30 AM
  3. Replies: 1
    Last Post: 07-26-2012, 03:49 PM
  4. [SOLVED] Formula result will not show when formula is copied to another cell
    By nabraham00 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2012, 01:03 PM
  5. Date formula if positive show, if negative don't show.
    By Cyberpawz in forum Excel General
    Replies: 8
    Last Post: 03-14-2012, 07:49 AM
  6. Replies: 0
    Last Post: 09-04-2011, 09:14 AM
  7. if formula to show blank or show instead of displaying the running total
    By js1978 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2008, 04:38 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