+ Reply to Thread
Results 1 to 10 of 10

Possible Index/Match and/or Duplicate/Ignore??

  1. #1
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Possible Index/Match and/or Duplicate/Ignore??

    Hello,

    I have a payroll workbook that utilizes Vlookup to pull employee pay rates, insurance deductions, project information, expense data, etc. Employees can work on multiple projects w/in a pay period and the spreadsheet reflects this with a different row for each project. See below:


    Excel1.jpg


    For accounting purposes, we will filter by Employee and then sum the totals. However, the insurance deduction only needs to be counted once in the totals row. I cannot figure out how if that's possible.

    The value (insurance deduction) pulls from another worksheet and the current formula is =VLOOKUP(B8,EmployeeRates,4,FALSE),"")
    Last edited by mrsbrannon; 02-27-2018 at 11:49 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Possible Index/Match and/or Duplicate/Ignore??

    Welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: Possible Index/Match and/or Duplicate/Ignore??

    Well,

    The original took me 4 days to create and I don't really have 4 more days to create a dummy. It's really complex. Is there any other screen shots that might help?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Possible Index/Match and/or Duplicate/Ignore??

    Well. This took about 30 seconds to create. Is this what you need? If not, can you explain on this sheet??

    =IF(COUNTIF($A$2:A2,A2)>1,"",VLOOKUP(A2,I:J,2,FALSE))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: Possible Index/Match and/or Duplicate/Ignore??

    Wow! I do believe that worked. Now what can I add to get rid of the #N/A in my empty cells AND the totals row? I am so impressed.
    Last edited by mrsbrannon; 02-27-2018 at 10:48 AM.

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Possible Index/Match and/or Duplicate/Ignore??

    Maybe something like this in Insurance column to return only unique values per employee to sum in total:
    =IFERROR(INDEX(EmployeeRates!$B$1:$B$5, MATCH(0, IF($A2=EmployeeRates!$A$1:$A$5, COUNTIF($B$1:B1, EmployeeRates!$B$1:$B$5), ""), 0)),"")
    Array formula
    Or if you want to keep all of them and then to sum only the unique ones:
    =SUMPRODUCT(1/COUNTIF($E$6:$E$10,$E$6:$E$10&""),$E$6:$E$10)

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Possible Index/Match and/or Duplicate/Ignore??

    =IFERROR (myformula,"")

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  8. #8
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: Possible Index/Match and/or Duplicate/Ignore??

    It's saying, "Too many arguments for this function."

    =IFERROR(COUNTIF($B$8:B9,B9)>1,"", VLOOKUP(B9,EmployeeRates,4,FALSE))

  9. #9
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: Possible Index/Match and/or Duplicate/Ignore??

    Hmmmmmm, okay it took the formula but now it's doing something strange to the numbers. Gonna investigate and see how best to show the issue.
    Last edited by mrsbrannon; 02-27-2018 at 01:02 PM.

  10. #10
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: Possible Index/Match and/or Duplicate/Ignore??

    I THINK I have it figured out. Ended up using IFNA and it seems to be working.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Ignore blanks in Index/Match
    By dazbear in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-25-2018, 03:55 PM
  2. Getting INDEX MATCH MATCH to ignore blanks
    By JK_Nation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2016, 05:44 PM
  3. [SOLVED] Ignore N/A in INDEX MATCH sum
    By KML1976 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2016, 10:31 AM
  4. Ignore Blanks for INDEX/MATCH with multiple criteria search
    By Stephen23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2015, 09:14 AM
  5. How to ignore blanks in an Index/Match Array Formula
    By michaelcarrera in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2015, 08:50 PM
  6. [SOLVED] Ignore if NA in index/match
    By anon in forum Excel General
    Replies: 5
    Last Post: 06-16-2014, 09:32 AM
  7. [SOLVED] how to ignore text in a sumproduct, index, and match formula.
    By sbham in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-12-2013, 04:55 PM

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