Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Array or list

  1. #1
    New Member
    Join Date
    May 2002
    Location
    Georgia
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I cannot get this formula to work:
    IF(G9="H""K""L""M""N""O""P",H8-E9,H8)))

    If G9 has any of those letters I want it to perform the h8-h9 formula. I have tried a bunch of stuff and I am even using the "excel 2002 formulas" book by Walkenbach. I don't get an error, it will only recognize if I have 1 letter in the arguement. I tried using brackets around the group of letters as well.

    [ This Message was edited by: Nsdqdu on 2002-05-04 17:17 ]

    [ This Message was edited by: Nsdqdu on 2002-05-04 17:18 ]

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    84,034
    Post Thanks / Like
    Mentioned
    37 Post(s)
    Tagged
    7 Thread(s)

    Default



    =IF(OR(G9={"H","K","L","M","N","O","P"}),H8-E9,H8)


    Alternatively:

    =H8-(ISNUMBER(MATCH(G9,{"H","K","L","M","N","O","P"},0)))*E9

    Aladin

  3. #3
    MrExcel MVP
    Join Date
    Apr 2002
    Location
    Vancouver BC , Canada
    Posts
    6,259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default


  4. #4
    MrExcel MVP
    Join Date
    Apr 2002
    Location
    Vancouver BC , Canada
    Posts
    6,259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    IF((OR(G9="H",G9="K",G9="L",G9="M",G9="N",G9="O",G9="P"),H8-E9,H8))

    [ This Message was edited by: Nimrod on 2002-05-04 17:32 ]

  5. #5
    New Member
    Join Date
    May 2002
    Location
    Georgia
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    THANK YOU!!!!!!!! Aladin. I'm not the best at syntax, I was close but still far away. I misused the OR function. You just alieviated a lot of stress from my life.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •