combining index + array to return values

cnoh

New Member
Joined
Mar 11, 2025
Messages
3
Office Version
  1. 2024
Hi. I have a schedule in table format showing the fruit that each team member is responsible for bringing on a certain date. I'd like to return a list that indicates:

1. Who is bringing which fruit on which date, e.g., Beth oranges Friday, April 11, Joyce raspberries Thursday, April 10

2. The last date that each fruit is being brought, e.g., apples on Thursday, April 17, bananas on Monday, April 7, and so on. For this one, I have figured out how to determine the name of the last person responsible for a fruit e.g., =ArrayFormula(LOOKUP(2,1/(B5:B36<>""),B5:B36)), but I also want to know which date they are assigned. It seems that I could someone combine the array with index, but I'm stuck.

Any tips would be greatly appreciated!



Screenshot 2025-03-11 at 11.29.17 AM.png
 
Is this for Excel or Google Sheets?
 
Upvote 0
OK, but if you need something to work in Sheets you need to say that & such questions should be posted in the General Discussion & Other Applications section.

For you 2nd question change the 2nd B3:B36 to A5:A36 to return the date.
 
Upvote 0
For your 1st question, how about
Excel Formula:
=LET(d,B5:G34,HSTACK(TOCOL(IF(d<>"",A5:A34,1/0),2),TOCOL(IF(d<>"",B3:G3,1/0),2),TOCOL(d,1)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

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