+ Reply to Thread
Results 1 to 8 of 8

3 INDEX Formulas in One Cell

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Coral Springs, Florida
    MS-Off Ver
    Excel 2003
    Posts
    9

    3 INDEX Formulas in One Cell

    Hi,

    I have 2 sheets (First One with
    Col A = Serv Date
    Col B = Patient
    Col C = Service (PT, OT or ST)
    Col D = Authorization

    Second Sheet
    Col A = Patient
    Col B = Begin Date + First Cell of the Column shows "PT"
    Col C = End Date
    Col D = Authorization

    Col E = Begin Date + First Cell of the Column shows "OT"
    Col F = End Date
    Col G = Authorization

    Col H = Begin Date + First Cell of the Column shows "ST"
    Col I = End Date
    Col J = Authorization

    How could I combined the 3 separate formulas in one cell?:
    To return PT Authorization Number:
    =INDEX(Sheet2!$D$1:$D$200,MATCH(1,(A2>=Sheet2!$B$1:$B$200)*(A2<=Sheet2!$C$1:$C$200)*(B2=Sheet2!$A$1:$A$200)*(C2="PT"),0))
    To return OT Authorization Number:
    =INDEX(Sheet2!$G$1:$G$200,MATCH(1,(A2>=Sheet2!$E$1:$E$200)*(A2<=Sheet2!$F$1:$F$200)*(B2=Sheet2!$A$1:$A$200)*(C2="OT"),0))
    To return ST Authorization Number:
    =INDEX(Sheet2!$J$1:$J$200,MATCH(1,(A2>=Sheet2!$H$1:$H$200)*(A2<=Sheet2!$I$1:$I$200)*(B2=Sheet2!$A$1:$A$200)*(C2="ST"),0))

    Note (Authorization value is alphanumeric so I don’t think I can use SUMPRODUCT or SUMIF)…

    Thanks!
    Last edited by NBVC; 03-25-2011 at 01:27 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 3 INDEX Formulas in One Cell

    Does this work?

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-18-2009
    Location
    Coral Springs, Florida
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: 3 INDEX Formulas in One Cell

    Hi,
    Thanks for responding so quickly!
    Sorry, but I couldn't make it work Could you take a look at the test sheet attached)? Thanks!!
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 3 INDEX Formulas in One Cell

    Ok, thanks for the workbook...

    Try this:

    Please Login or Register  to view this content.
    Note: This formula can be entered with ENTER only.... you don't need CTRL, SHIFT, ENTER to evaluate it.

  5. #5
    Registered User
    Join Date
    08-18-2009
    Location
    Coral Springs, Florida
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: 3 INDEX Formulas in One Cell

    OMG!! It works. You just made my Friday! Thank you thank you thank you Have a good one!!!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 3 INDEX Formulas in One Cell

    You are very welcome

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 3 INDEX Formulas in One Cell

    If you are satisfied with the solution provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  8. #8
    Registered User
    Join Date
    08-18-2009
    Location
    Coral Springs, Florida
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: 3 INDEX Formulas in One Cell

    How to mark Solved: Thanks for the tip! Now I know for the next time

+ 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