Results 1 to 8 of 8

alternative to too many nested IF statements

Threaded View

  1. #1
    Registered User
    Join Date
    09-08-2008
    Location
    Maine
    Posts
    17

    alternative to too many nested IF statements

    I have a sheet with 10 columns. I need to start at the far right and work my way to the left to determine if a column has data (text) in it or not. If it does, I need to return the value, if not, I need it to continue to the left and check the next one.

    I have a statement that works but it only allows me to process 7 columns and I need to process all 10.

    =IF(ISTEXT(T5),(T5),IF(ISTEXT(R5),(R5),IF(ISTEXT(P5),(P5),IF(ISTEXT(N5),
    N5,IF(ISTEXT(L5),(L5),IF(ISTEXT(J5),(J5),IF(ISTEXT(H5),(H5),"error")))))))

    Any suggestions?

    I am using Excel 2007 but as far as I can tell, it seems the limitation of 7 nested statements still applies.


    ps. My first post. Hope I did a reasonable job.
    Last edited by lintcoop; 09-08-2008 at 12:38 PM. Reason: additional info.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VB and nested if statements
    By timmycl_7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2008, 07:39 AM
  2. 15 nested if statements
    By john1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2007, 11:33 PM
  3. l7 limit on nested if and statements
    By censura in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-05-2007, 07:40 AM
  4. Nested conditional statements
    By Apel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2006, 01:28 PM
  5. Nested IF Statements Linking Problem
    By skratch in forum Excel General
    Replies: 2
    Last Post: 09-14-2006, 06:30 AM

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