Results 1 to 8 of 8

Tidier IF Statement or other function?

Threaded View

  1. #1
    Registered User
    Join Date
    08-30-2007
    Posts
    35

    Question Tidier IF Statement or other function?

    Hi there,

    I have quite a complex or conditional statement that ends up being very long when entered in an IF statement format. I was wondering whether this could be tidied up or done in another method! I have simplified the statement below to help you understand it easier!

    =IF(Data!C7=4,VLOOKUP(Data!C76,Data!D75:E79,2),VLOOKUP(Data!C7,Data!D6:M19,5))
    Basically I have a table of data that normally i would VLOOKUP from (section in bold). The problem i have is that there are 5 exceptions where if a certain value is entered i need it to reference seperate tables (the first of these is in italic. I have a further four statements to add in like this. The only way i can see to do it is keep on creating more and more IF statements, but its getting very confusing!!! Is there a simpler way to do this???

    Mnay Thanks in advance
    Last edited by Richard Buttrey; 07-30-2008 at 07:28 AM. Reason: Set code tags around formula

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