+ Reply to Thread
Results 1 to 3 of 3

Need for more than 7 Nested statements

  1. #1
    Registered User
    Join Date
    07-27-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    13

    Need for more than 7 Nested statements

    I have a seemingly simple problem that I have been struggling with for a little while.

    I have a collection of data like the following:
    Week1 | yes
    Week2 | no
    Week3 | no
    Week4 | yes
    Week5 | no
    ...
    Week28 | yes

    I need a formula to go through each row and if the 2nd column is yes then return the first column. I could then copy and paste this formula into a the next cell, add an argument saying the returned value cannot be the same as the previous ones, and so on.
    Essentially this is a series of nested IF statements. However, Excel prevents more than 7 statements from being nested, when I need all 28 to be searched.

    I cannot think of a way to get VLOOKUP, INDEX & MATCH, or defined names to make this work, because it needs to step through each row. I am probably overlooking something and would appreciate any help.

    Thanks.
    Last edited by Hot Soup; 07-27-2009 at 12:32 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need for more than 7 Nested statements

    If we assume your values were in say A1:B28 and you wanted unique values from A repeated in A30 onwards... (and assuming you can't just use Auto Filter and copy resulting output)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-27-2009
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Need for more than 7 Nested statements

    Well that is impressive.

    I could not use auto-filter so this is a big help, thanks, I doubt I would have figured that formula out on my own.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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