+ Reply to Thread
Results 1 to 6 of 6

Help with Formula- Match Formula

  1. #1
    Registered User
    Join Date
    06-16-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with Formula- Match Formula

    Hello everyone out there-

    I am having trouble developing a tool for use for my employees at work. I need to make a formula that performs the following action so I can merge a summary page with a mail merge to assign workloads out daily:

    What I need it to do is:
    If L2 = 101,103,105,107,109,111,113,2,4,6,8,10,12 then I2=G2
    If L2 = 102,104,106,108,110, 112,114,3,5,7,9,11,13 then I2=H2

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with Formula- Match Formula

    Not real clear.

    If L2 = 101,103,105,107,109,111,113,2,4,6,8,10,12
    Does that mean if L2 contains the EXACT string in its entirety:

    101,103,105,107,109,111,113,2,4,6,8,10,12

    Or, does it mean if L2 contains ANY of these numbers:

    101 or 103 or 105 or 107 or 109 or 111 or etc., etc.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help with Formula- Match Formula

    Try in I2

    Please Login or Register  to view this content.
    or maybe you want..
    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    06-16-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with Formula- Match Formula

    Sorry, it is not the whole string, it is the individual numbers between the comas sepoerating.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with Formula- Match Formula

    Try this...

    Enter the numbers in a range of cells:

    A2:A14 = 101,103,105,107,109,111,113,2,4,6,8,10,12

    B2:B14 = 102,104,106,108,110, 112,114,3,5,7,9,11,13

    Then, this formula entered in I2:

    =IF(COUNTIF(A2:A14,L2),G2,IF(COUNTIF(B2:B14,L2),H2,""))

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with Formula- Match Formula

    or maybe
    =IF(OR(L2={101,103,105,107,109,111,113,2,4,6,8,10,12}),G2,H2)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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