+ Reply to Thread
Results 1 to 5 of 5

simple if then function

  1. #1
    amy
    Guest

    simple if then function

    I know this should be simple but I am having problems
    if f9=xa then f20=133
    if f9=tc then f20=168
    if f9=xb then f20= 145

    I had done these years ago and just can't get this simple formula to work.
    Any help you can give me would be greatly appreciated.

    Thank you


  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Amy

    This formula when placed in cell F20 will do what you want. If F9 doesn't equal xa, tx or xb then the cell will show as empty.

    =IF(F9="xa",133,IF(F9="tc",168,IF(F9="xb",155,"")))

    HTH

    DominicB

  3. #3
    N Harkawat
    Guest

    Re: simple if then function

    =hlookup(F9,{"xa","tc","xb";133,168,145},2,0)

    "amy" <[email protected]> wrote in message
    news:[email protected]...
    >I know this should be simple but I am having problems
    > if f9=xa then f20=133
    > if f9=tc then f20=168
    > if f9=xb then f20= 145
    >
    > I had done these years ago and just can't get this simple formula to work.
    > Any help you can give me would be greatly appreciated.
    >
    > Thank you
    >




  4. #4
    amy
    Guest

    Re: simple if then function

    tHANK YOU FOR YOUR EHLP IT WORKED GREAT. nEVER USED HLOOKUP BEFORE

    "N Harkawat" wrote:

    > =hlookup(F9,{"xa","tc","xb";133,168,145},2,0)
    >
    > "amy" <[email protected]> wrote in message
    > news:[email protected]...
    > >I know this should be simple but I am having problems
    > > if f9=xa then f20=133
    > > if f9=tc then f20=168
    > > if f9=xb then f20= 145
    > >
    > > I had done these years ago and just can't get this simple formula to work.
    > > Any help you can give me would be greatly appreciated.
    > >
    > > Thank you
    > >

    >
    >
    >


  5. #5
    CLR
    Guest

    Re: simple if then function

    IN cell F20 put this formula....

    =IF(F9="xa",133,IF(F9="tc",168,IF(F9="XB",145,"")))

    Vaya con Dios,
    Chuck, CABGx3


    "amy" <[email protected]> wrote in message
    news:[email protected]...
    > I know this should be simple but I am having problems
    > if f9=xa then f20=133
    > if f9=tc then f20=168
    > if f9=xb then f20= 145
    >
    > I had done these years ago and just can't get this simple formula to work.
    > Any help you can give me would be greatly appreciated.
    >
    > Thank you
    >




+ 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