+ Reply to Thread
Results 1 to 5 of 5

Three different names as conditions to add to a formula

  1. #1
    Registered User
    Join Date
    09-12-2008
    Location
    Riversul
    MS-Off Ver
    2016
    Posts
    83

    Question Three different names as conditions to add to a formula

    Ok, first of all, thank you for taking your time to read this thread and evaluate my current problem. Here's the situation that I'm having to deal with:

    I currently have this formula:

    Please Login or Register  to view this content.
    Now, I was asked to add some extra variables to that context. Well, what about them? You see, there're three different names (which we shall name "Whiskey", "Vodka" and "Gin"). I need to make the formula understand that if any of these names is present in a given cell (A1, for instance), the return value should be of 0%. If not, it's just business as usual. I tried to fiddle with the "if(or" function a little bit and even read some pages about it but I still couldn't grasp the essence of the matter.


    If is there someone here willing to give me a hand with this one, I'm gonna be really thankful. Thank you in advance!

  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,704

    Re: Three different names as conditions to add to a formula

    You can add this to the beginning of your current formula:

    =IF(OR(A1="Whiskey",A1="Vodka",A1="Gin"),0%,IF(ISERROR(...etc.

    and then you need to put a close-bracket ) at the end.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-12-2008
    Location
    Riversul
    MS-Off Ver
    2016
    Posts
    83

    Re: Three different names as conditions to add to a formula

    Indeed it has, mr. Pete! If I lived there in the UK I would gladly buy you a drink in order to thank you for your support. Take care and thank you very much!

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

    Re: Three different names as conditions to add to a formula

    Glad to help, and thanks for marking the thread as Solved.

    In addition, you could also click on the "star" icon below my post - it's cheaper than a beer !!

    Pete

  5. #5
    Registered User
    Join Date
    09-12-2008
    Location
    Riversul
    MS-Off Ver
    2016
    Posts
    83

    Re: Three different names as conditions to add to a formula

    Not at all!

    Oh that's fancy, I didn't know there was such a feature in here! It's a deal, although it's not a beer, the reputation was given. Thanks for this extra hint, when I return here in the future with another doubt I shall not forget about it

+ 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. Macro for Concatenate the names basis of multiple conditions
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2016, 03:42 AM
  2. [SOLVED] INDIRECT with conditions problem - spreadsheet copied weekly same rows/colums/names
    By annazet in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2013, 11:22 AM
  3. Replies: 1
    Last Post: 05-14-2012, 10:14 AM
  4. Replies: 3
    Last Post: 04-01-2012, 07:54 AM
  5. Replace names in one column under certain conditions
    By johnmerlino in forum Excel General
    Replies: 12
    Last Post: 11-20-2010, 03:53 PM
  6. COUNTIF 2 Conditions using Defined Names
    By Paul Dennis in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-18-2006, 03:25 AM
  7. [SOLVED] copying names to list depending on certain conditions
    By macca in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-21-2005, 07:05 AM

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