+ Reply to Thread
Results 1 to 9 of 9

another multiple condition formula question

  1. #1
    Registered User
    Join Date
    01-18-2010
    Location
    Memphis
    MS-Off Ver
    Excel 2003
    Posts
    5

    another multiple condition formula question

    Hello -

    New user here - thanks for any help in advance.

    I need a formula that will check the values in several cells in a row and return the number in the last cell on that row if the conditons are met. The difficulty is that each of these cells needs to match one of a number of values.

    Please let me know if that is unclear.

    Thanks-

    knoxruss

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: another multiple condition formula question

    It is a bit unclear. I think I get what you're doing, but an example workbook with dummy data would go miles toward helping us solve this for you.

  3. #3
    Registered User
    Join Date
    01-18-2010
    Location
    Memphis
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: another multiple condition formula question

    Sorry -

    See attached example. I would need a formula in H2 that would return the weight only if the conditions were met. The conditions could be city=Memphis, color=grn, blk, or red, size=L or M. If the conditions were met, I would want the weight displayed in H2. If not, either zero or no value.

    Thanks-

    knoxruss
    Attached Files Attached Files

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: another multiple condition formula question

    =IF(AND(A2="Memphis",OR(E2={"L","M"}),OR(C2={"grn","blk","red"})),F2,"")

  5. #5
    Registered User
    Join Date
    01-18-2010
    Location
    Memphis
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: another multiple condition formula question

    Is that fomula designed to display the weight if all the conditions are met, or only one?

    I need all of the conditions to be met.

    Thanks for your help.

    knoxruss

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: another multiple condition formula question

    Perhaps you should try it before you ask...

    but, yes, it meets all of the conditions. That's what the AND does.

  7. #7
    Registered User
    Join Date
    01-18-2010
    Location
    Memphis
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: another multiple condition formula question

    Thanks again for your help.

    FYI - I did try it, but didn't get the result I had anticipated.

    I think I may have a formatting issue. I'm guessing the multiple values have to be text with quotes? I tried using a cell reference and it didn't work.

    For example, OR(E2={G1, G3}) with the L and M in G1 and G3 intead of OR(E2={"L","M"})

    knoxruss

  8. #8
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: another multiple condition formula question

    You'd have to do OR(E2=G1,E2=G3)

  9. #9
    Registered User
    Join Date
    01-18-2010
    Location
    Memphis
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: another multiple condition formula question

    That worked.

    Appreciate it!

+ 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