briangriffin
Programmer
I have data in columns such as this:
I need to be able to look up the department number and return all records for a single department and insert them into another worksheet.
The original data comes in sorted by department and date. I can't use VBA, it need to be Excel functions only. I can get the first row to come in using vlookup but I'm not sure how to get the other rows.
TIA.
Code:
Dept. Date Revenue
1000 2/1/2019 $1000
1000 2/2/2019 $2000
1000 2/3/2019 $3000
1001 2/1/2019 $4000
1001 2/2/2019 $5000
1001 2/3/2019 $6000
I need to be able to look up the department number and return all records for a single department and insert them into another worksheet.
Code:
Dept. Date Revenue
1001 2/1/2019 $4000
1001 2/2/2019 $5000
1001 2/3/2019 $6000
The original data comes in sorted by department and date. I can't use VBA, it need to be Excel functions only. I can get the first row to come in using vlookup but I'm not sure how to get the other rows.
TIA.