+ Reply to Thread
Results 1 to 13 of 13

Index Match with conditions

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Unhappy Index Match with conditions

    Hello to All...

    I have 2 spreadsheets on the firts one I have this:

    Names Monday Tuesday Wed

    Group (1)
    Carla P LOA
    George P LOA P
    John P LOA P

    Group (2)
    Carla P
    Robert P LOA P
    Mike P P

    But then, I am using in second separate sheet with a list of all my employee organized aphabetic so that I make sure I am not missing an employee on my report by groups.
    the problem is that because this employee switch from one job to another I have duplicates names on the same sheet ( example Carla)..
    so when I use INDEX MATCH on my second sheet.. I does not come out the "P" of present or LOA for Carla for example,
    It comes out "0" (cero) because it brings the info from the empty cell ( the job where the employee did not work on that day) ..
    there is any kind of condition I can use to have this worked out or it is just impossible?
    Thanks to all for any kind of info.. this will really help me lots at work.
    Giannina

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Index Match with conditions

    Hi vblackman,

    Excel has an answer for you. It is called Pivot Tables from Multiple Ranges..

    See http://www.contextures.com/xlPivot08.html

    I've added the icon for this function on my Quick Access Toolbar (QAT). See if this doesn't do what you need.

    The test of a good product is that it has stuff you need but have never even heard of before. Excel is cool!
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Index Match with conditions

    Thanks Marvin... but It did not work for me.. : (

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Index Match with conditions

    If its just a small number of groups then maybe something like:

    =IFERROR(VLOOKUP("Carla",Sheet1!A2:D4,4,0),"")&IFERROR(VLOOKUP("Carla",Sheet1!A8:D10,4,0),"")

  5. #5
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Index Match with conditions

    Thanks... I think i did not explain my self properly.. I am attaching my spreadsheet hoping that maybe you can have a look at it and se if maybe I am asking for too much to excel. There are 3 tabs, 1st Tab Base Plant Week 20, Second Tab Serp Project -Week 20, and 3rd Tab is for my balancing sheet, like I said before I have around 51 employees switching between jobs, what I would like is to find out how to Balance my force report every day on my 3rd Tab called Balance sheet,

    It is hard to go checking one by one every day to make sure that for all my employee I have a "P" of Present, "ABS" of absent, "LOA" of leave of absence, "QUIT", etc.

    When I use the Term "ONLOAN" on the tab SERP Project is so that the client knows he wil not pay for that employee on that that particular day because we loan the employee to a different area, but if this is the case the employee ON LOAN has to show on on the Tab Called Base Plant Week 20, I have missed employee assistance many times because It hard to know if I am missing an employee when I have duplicates in the tab Base Plant ( duplicates are marked in red)

    I know is confusing but maybe you can help me out!!!
    Thanks in advance for your help and any recomendation you could have for me!
    :D
    now I am not sure if the attachment in on here .. but if not I will try again!!
    Last edited by vblackman; 05-19-2012 at 11:20 AM.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Index Match with conditions

    Unless all those employees have given consent to their names being shown, you'd better remove that file and post one with fictitious names.

  7. #7
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Index Match with conditions

    :s I dont know how ro remove it!!!
    :s

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Index Match with conditions

    I see you figured it out.
    OK, a formula approach could be like this:

    In E3 (and dragged over and down) this:
    Please Login or Register  to view this content.
    This will return, if a match is found, a value from Base Plant and a / and a value from SERP Project. So a value left of the / means it was found on Base Plant and a value right of the / means it was found on SERP Project.

  9. #9
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Index Match with conditions

    Ok I got it now .. thanks for your advice! Its my first time doing this stuff! I have attached the new one.
    Attached Files Attached Files

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Index Match with conditions

    The formula I gave in Post #8 refers to your actual file (which I will now delete) and should have the whole column references that I used changed to specific ranges.

  11. #11
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Index Match with conditions

    Thanks Cutter.. I tried but some how is only working in certain cells, not for all of them.. I am not sure what it could be wrong ..I underatand your logic.. I will keep checking it.

  12. #12
    Registered User
    Join Date
    04-26-2012
    Location
    alberta, canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Index Match with conditions

    In fact the matching values are only coming up for the employees that are in both sheets(SERP & Base Plant), but the employee that are only in either of them ( they dont switch) are not coming up.. I guess is too complicate it for excel?

  13. #13
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Index Match with conditions

    I got your file out of my Recycle Bin and had another look at it. It's not working because I missed the fact that the same employee can show up on the same worksheet. That being the case the formula is only returning the first occurrence of the employee on each sheet.
    So, this will require assistance above my "expertise". Maybe MarvinP will provide further assistance.

+ 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