+ Reply to Thread
Results 1 to 3 of 3

Multiple if statements in excel 2003

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    dublin
    MS-Off Ver
    Excel 2003
    Posts
    2

    Multiple if statements in excel 2003

    I'm trying to write a multiple (42) nested if statement but obviously excel will only allow me to input 8.

    Basically I am writing a formula where I want the information to change based on the date which is cell $G$2. This is matched in a table of information where the columns headers are dates and the row headers are figures. So if I input a date on the spreadsheet it will find that date in the table and then give me a specific row with the information.


    (IF($G$2=Sheet1!$F$4,Sheet1!F5,IF($G$2=Sheet1!$H$4,Sheet1!H5,IF($G$2=Sheet1!$J$4,Sheet1!J5,IF($G$2=Sheet1!$L$4,Sheet1!L5,IF($G$2=Sheet1!$N$4,Sheet1!N5,IF($G$2=Sheet1!$P$4,Sheet1!P5,IF($G$2=Sheet1!$R$4,Sheet1!R5,IF($G$2=Sheet1!$T$4,Sheet1!T5,)))))))))

    This was the formulae I was using until I realised there was a limit on the nested if statements

    Has anyone any ideas for a different function or alternative method.

    Thanks

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Multiple if statements in excel 2003

    oconnorbrian1,

    Welcome to the forum!
    Take a look at HLOOKUP
    In your case, it would be something like this:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-13-2012
    Location
    dublin
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Multiple if statements in excel 2003

    That seems to have worked a treat,

    Thanks Very much

    Boc

+ 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