Formula Trouble with Index, Match, and Countifs

NorthbyNorthwest

Board Regular
Joined
Oct 27, 2013
Messages
173
Office Version
  1. 365
Hi, everyone. I have a formula that initially appeared to work, i.e., it returned what I wanted. It returned a list of distinct names from a table to another worksheet.

Formula =INDEX(SumTable1[Employee],MATCH(0,COUNTIFS(C$4:$C5,SumTable1[Employee],D$4:$D5,SumTable1[Position],E$4:$E5,SumTable1[Grade]),0))

The table dataset covers 12 months. Each employee has 12 entries. In most instances, the employee's position and grade will not change in the 12 months. So, in this instance the formula should return the employee's name once. However, if the employee's position or grade changes, I need the formula to return the employee's name a second time (to another row). Initially, the formula worked. But now for some unexplainable reason the formula returns the first name in the table's Employee column repeatedly, as the formula copies down. Could someone assist? I am totally stumped.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about
Excel Formula:
=TAKE(UNIQUE(SumTable1[[Employee]:[Grade]]),,1)
 
Upvote 0
Thanks, Fluff. That worked. But now I'm thinking I didn't ask the right question. I thought if I understood how to get the employee's name twice I wouldn't have problem getting the next two columns. Wrong! I've been trying last hour and no luck. So, if you would be so kind, let me ask another question. Sorry. Maybe, it's what I should've asked the first time. As I stated before I want employee's name returned twice if there's a change in position or grade. But I also want the position and grade returned. So...

row 1, column 1: John Smith row 1, column 2: Old position row 1, column 3 Old grade
row 2, column 1: John Smith row 2, column 2: New position row 2, column 3 New grade

How can I achieve this?
 
Upvote 0
Can you post some sample data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi, Fluff. See below.

Employee Accuracy 2.xlsx
BCDEFGHIJKLMNOPQRSTUVWXY
3Review1Review2Review3Quality TotalsYTD Quality Totals
4MonthEmployeePositionGradeElements CheckedElements CorrectElements Checked2Elements Correct2Elements Checked3Elements Correct3Total ReviewsTotal Elements CheckedTotal Elements CorrectAccuracy Rate this MonthEmployeePositionGradeUnitAudit GroupTotal ReviewsTotal Elements CheckedTotal Elements CorrectAccuracy Rate YTD
5OctAudrey HepburnClerkL61515161615153464697.83%Audrey Hepburn
6OctBarbara StanwyckClerkL61514161415133464197.83%Barbara Stanwyck
7OctBette DavisClerkL51414151515133444297.83%Bette Davis
8OctCary GrantClerkL61512121215143423897.83%Cary Grant
9OctClark GableClerkL61513161615143464397.83%Clark Gable
10OctElizabeth TaylorClerkL61514151415133454197.83%Elizabeth Taylor
11NovAudrey HepburnClerkL61514161515133464297.83%Bette Davis
12NovBarbara StanwyckClerkL61616161315153474497.83%
13NovBette DavisClerkL71515161515153464597.83%
14NovCary GrantClerkL61312151515133434097.83%
15NovClark GableClerkL61513151515153454397.83%
16NovElizabeth TaylorClerkL61615151315123464097.83%
17DecAudrey HepburnClerkL615131512151316453897.83%
18DecBarbara StanwyckClerkL655171615153373697.83%
19DecBette DavisClerkL71515161615143464597.83%
20DecCary GrantClerkL61513151315153454197.83%
21DecClark GableClerkL61818171715143504997.83%
Summary
Cell Formulas
RangeFormula
Q5:Q11Q5=TAKE(UNIQUE(SumTable1[[Employee]:[Grade]]),,1)
Dynamic array formulas.
 
Upvote 0
Thanks for that. (y)
How about
Excel Formula:
=UNIQUE(SumTable1[[Employee]:[Grade]])
 
Upvote 0
Solution
Fluff, so simple, so genius. I didn't know it was possible to fill in multiple columns with a formula. Thank you for coming to my rescue. So grateful to you and the many others who keep this forum going. Have a blessed day.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top