+ Reply to Thread
Results 1 to 6 of 6

If and + if or

  1. #1
    Registered User
    Join Date
    07-11-2016
    Location
    usa
    MS-Off Ver
    2016
    Posts
    78

    If and + if or

    Hi,

    In my attached data set, I am trying to find a formula which will give me the desired output in Col D. The formula should first check if Type (Col A) = "Home" and only if it is true then it should check Description (Col C). Under Col C it should check if the cell contains full Upper Case text then it should return "Type A" under Col D. If Col C contains lower case or proper case or anything else then it should return "Type B" in Col D. If Col C contains a blank cell then it should return "No Notes". Please note that the Type (Col A) should be equal to "Home", only then proceed with the above checks. If the value of a cell under Col A is not equal to "Home", then it should return a value of "Not Applicable" under Col D. Hope this helps.
    Attached Files Attached Files

  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
    81,228

    Re: If and + if or

    You cannot use formatting as a formula criterion. Formulae cannot 'see' formatting. Unless you think of a different approach, it will have to be VBA.

    Your thread title is really quite poor, and tells us nothing about the fact that you are trying to use text formatting in the formula - please be more detailed in your thread titles in future.
    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
    Registered User
    Join Date
    07-11-2016
    Location
    usa
    MS-Off Ver
    2016
    Posts
    78

    Re: If and + if or

    Hi,

    I apologize for the title, I will be more accurate moving forward. This is the formula I have to check the case logic: =IF(ISBLANK(C2),"No Notes",IF(EXACT(C2,UPPER(C2)),"Type A",IF(EXACT(C2,LOWER(C2)),"Type B","Type B"))). I just want to add another AND condition which first checks if Type = "Home" before applying the above formula. Please let me know if this is possible.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: If and + if or

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    07-11-2016
    Location
    usa
    MS-Off Ver
    2016
    Posts
    78

    Re: If and + if or

    Hi TMS,

    Your formula worked. Thanks a ton !

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: If and + if or

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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