+ Reply to Thread
Results 1 to 8 of 8

Formula help - on specific values

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 365
    Posts
    30

    Formula help - on specific values

    I need a formula that returns the value on column C as "yes" if column A has any text(name) and Column B has "Approved",

    also if column B has any other answer, Column C returns as "No"

    and if Column B is empty, Column C returns as blank.

    here's what I have which doesnt work, this might have a really different formula than what I have:

    =IF(ISBLANK(AND(A2,B2)),IF(AND(istext=A2,B2=Approved), "Yes","No"))

    any thoughts?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: Formula help - on specific values

    =IF( B2="", "" , IF ( AND(istext(A2),B2="approved"), "yes", "no"))

    try adding a sample sheet , with various combinations and the required output needed - see yellow sheet
    Attached Files Attached Files
    Last edited by etaf; 11-11-2021 at 03:43 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,749

    Re: Formula help - on specific values

    Let's try this:

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


    If B is empty, the result will be blank regardless of what is in A.
    If A is not empty and B is "Approved" then the result will be "Yes"
    Any other case not above will give the result "No". By the logic above this means that B is not blank, and either B is not Approved or A is blank.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,749

    Re: Formula help - on specific values

    To confirm my interpretation, I took "column A has any text(name)" to mean that there is some content in A, so I tested to see if it is blank. ISTEXT will return FALSE if A has a number in it.

  5. #5
    Registered User
    Join Date
    01-21-2013
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 365
    Posts
    30

    Re: Formula help - on specific values

    OMG this is perfect, you are a god.

    btw, would it completely change the formula if I add a condition?

    like, if Column B has any answer but Column A is empty, C should be empty also.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: Formula help - on specific values

    which formula worked ? Did you not want a number in A to return a yes in C ? as my formula shows - and the examples



    =IF( OR( B2="", AND(B2<>"",A2="")), "" , IF ( AND(istext(A2),B2="approved"), "yes", "no"))

  7. #7
    Registered User
    Join Date
    01-21-2013
    Location
    Philippines
    MS-Off Ver
    Microsoft Excel 365
    Posts
    30

    Re: Formula help - on specific values

    Quote Originally Posted by etaf View Post
    which formula worked ? Did you not want a number in A to return a yes in C ? as my formula shows - and the examples



    =IF( OR( B2="", AND(B2<>"",A2="")), "" , IF ( AND(istext(A2),B2="approved"), "yes", "no"))

    Yours actually worked, now im just trying to tinker it so that if A is also empty, C should return as blank also, thank you so much

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,791

    Re: Formula help - on specific values

    Ok,
    example file with new formula added

    if that does not do what you want , perhaps you can put some conditions in A & B and result wanted manually entered in C
    Attached Files Attached Files

+ 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: 5
    Last Post: 11-25-2020, 10:48 AM
  2. Replies: 7
    Last Post: 05-14-2020, 12:00 PM
  3. [SOLVED] Formula to sum values based on specific criteria
    By mroofka in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-11-2018, 06:48 AM
  4. Replies: 1
    Last Post: 03-29-2014, 07:00 AM
  5. [SOLVED] Formula to show specific values
    By yssong14 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-22-2013, 10:30 AM
  6. [SOLVED] Need Several Values to Line up to return a specific value - need formula help, please!
    By ImHorhay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-18-2013, 05:10 PM
  7. Formula to copy to values to specific rows
    By Simon1185 in forum Excel General
    Replies: 4
    Last Post: 12-03-2009, 04:55 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