+ Reply to Thread
Results 1 to 4 of 4

Combining INDEX functions

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    Combining INDEX functions

    Is there any way to combine the following?

    =IFERROR(INDEX(Combined!$C$4:Combined!$C$22,SMALL(IF(Combined!$D$4:Combined!$D$22="0600-1430",ROW(Combined!$D$4:Combined!$D$22)-3),ROW()-23)),"")

    and

    =IFERROR(INDEX(Combined!$C$4:Combined!$C$22,SMALL(IF(Combined!$D$4:Combined!$D$22="1400-2230",ROW(Combined!$D$4:Combined!$D$22)-3),ROW()-23)),"")

    Thanks in advance!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Combining INDEX functions

    What do you mean "combine"? Do you want an "OR" type setup with either of those values, if so try

    =IFERROR(INDEX(Combined!$C$4:$C$22,SMALL(IF((Combined!$D$4:$D$22="0600-1430")+(Combined!$D$4:$D$22="1400-2230"),ROW(Combined!$D$4:$D$22)-3),ROW()-23)),"")
    Audere est facere

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Combining INDEX functions

    Can you attach a sample file? I think I have a solution but need to see the data first.

  4. #4
    Registered User
    Join Date
    03-26-2012
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Combining INDEX functions

    YES!! That is exactly what I needed!

    =IFERROR(INDEX(Combined!$C$4:$C$22,SMALL(IF((Combined!$D$4:$D$22="0600-1430")+(Combined!$D$4:$D$22="1400-2230"),ROW(Combined!$D$4:$D$22)-3),ROW()-23)),"")

    I was trying to do a nested IF function inside the SMALL portion, and I can see now why it wouldn't work!

    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