Excel Vlookup formula to get a Required Details

Shazir

Banned - Rules violations
Joined
Jul 28, 2020
Messages
94
Office Version
  1. 365
Platform
  1. Windows
I have been using a sheet where i am stuck to do the necessary requirements.

I am trying to get a single employee review in the given table that how many times his review has been done in a year, two or three and so on. If I remove the year then his all review should appear in the above table.

I have been tried with vlookup but its not working.

any help will be highly appreciated

1604320978544.png





DataSheet
 

Attachments

  • 1604320993513.png
    1604320993513.png
    56.8 KB · Views: 10

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You should have given the expected results (example)
If I understood you well, try the following:

Set the following formulas on Sheet2

In the 'D1' cell copy formula below (change range if you need)
Code:
=COUNT(A3:A9)

In the 'A3' cell copy ARRAY formula below (formula finished with CSE, copy down)
Code:
=IF($G$3<>"",IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF((Sheet1!$B$2:$B$29=$G$2)*(--(YEAR(Sheet1!$C$2:$C$29)=$G$3)),ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(A1)),""),IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF(Sheet1!$B$2:$B$29=$G$2,ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(A1)),""))
Copy formula to 'B' column and down or
In the 'B3' cell copy ARRAY formula below (formula finished with CSE, copy down)
Code:
=IF($G$3<>"",IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF((Sheet1!$B$2:$B$29=$G$2)*(--(YEAR(Sheet1!$C$2:$C$29)=$G$3)),ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(B1)),""),IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF(Sheet1!$B$2:$B$29=$G$2,ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(B1)),""))

In the 'C3' cell copy ARRAY formula below (formula finished with CSE, copy down)
Code:
=IF($G$3<>"",IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF((Sheet1!$B$2:$B$29=$G$2)*(--(YEAR(Sheet1!$C$2:$C$29)=$G$3)),ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(D1)),""),IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF(Sheet1!$B$2:$B$29=$G$2,ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(D1)),""))
Copy formula to 'D' column and down or
In the 'D3' cell copy ARRAY formula below (formula finished with CSE, copy down)
Code:
=IF($G$3<>"",IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF((Sheet1!$B$2:$B$29=$G$2)*(--(YEAR(Sheet1!$C$2:$C$29)=$G$3)),ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(E1)),""),IFERROR(INDEX(Sheet1!$B$2:$F$29,SMALL(IF(Sheet1!$B$2:$B$29=$G$2,ROW(Sheet1!$B$2:$B$29)),ROW($A1:$G1))-1,COLUMN(E1)),""))
The nested COLUMN function indicates the column number.

The formula works as follows.
The base formula is an IF function consisting of two ARRAY formulas
TRUE argument - Array Formula that returns results if two criteria are active (year and number of clients)
FALSE argument - Array Formula that returns the result if one criterion is active (ie number of clients)
 

Attachments

  • shazir.png
    shazir.png
    13.9 KB · Views: 3
Upvote 0
Solution

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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