+ Reply to Thread
Results 1 to 7 of 7

If/Then OR combo

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Mitchell, South Dakota
    MS-Off Ver
    2010
    Posts
    3

    If/Then OR combo

    I am trying to build an If/Then formula that contains multiple logical arguments. Essentially, I want the formula to return a value of 4,3,or 1 based on which cell has an X in it. Here is the formula that I have:

    =(IF(K53="X","4",""),OR,IF(G53="X","3",""),OR,IF(B53="X","1",""))

    This formula returns a #Value!

    Any thoughts on what I have done incorrectly?

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: If/Then OR combo

    =IF(K53="X","4",IF(G53="X","3",IF(B53="X","1","")))

    Try this but you don't specifiy what happens when there is an X in all three cells

    OH and by the way welcome and by putting your values in apostrophies you'll get htem returned as text not values
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    12-17-2014
    Location
    Mitchell, South Dakota
    MS-Off Ver
    2010
    Posts
    3

    Re: If/Then OR combo

    That did it! Thanks so much, Crooza!
    =IF(K53="x","4",IF(G53="x","3",IF(B53="x","1")))

  4. #4
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: If/Then OR combo

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

    When first value K53 is wrong then formula will calculate the 2nd value
    When 2nd value is also wrong formula will calculate 3rd value.


    Click on * left end of this message

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: If/Then OR combo

    Great

    Glad it worked. You should mark the thread as solved now

  6. #6
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: If/Then OR combo

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

    When first value K53 is wrong then formula will calculate the 2nd value
    When 2nd value is also wrong formula will calculate 3rd value.


    Click on * left end of this message

  7. #7
    Registered User
    Join Date
    12-17-2014
    Location
    Mitchell, South Dakota
    MS-Off Ver
    2010
    Posts
    3

    Re: If/Then OR combo

    Thanks again Crooza. I did not write in what happened if all three have X's as I am creating an evaluation document that will total up various parts of the sheet. So, hopefully, if my people follow the correct process, they won't have an X in each box. Also, thanks for the tip about apostrophes. I will have to fix that as well.

+ 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: 19
    Last Post: 09-06-2014, 06:30 PM
  2. Populate 2nd combo with alpha based on 1st combo with 2 columns of numeric codes
    By dovermac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2014, 10:09 AM
  3. Replies: 8
    Last Post: 12-26-2013, 02:23 PM
  4. [SOLVED] Excel 2010 VBA – Combo Box Options– Clear cell/box in 2nd Combo when 1st Combo selected
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 07:25 PM
  5. Filtered list for Combo Box ListFillRange - Nested Combo Boxes
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2006, 08:20 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