Help with transposing matching data between tabs

Shilla

New Member
Joined
Nov 7, 2022
Messages
13
Office Version
  1. 365
Let me be honest: I'm not as good at Excel as I thought I was before finding this forum. You folks are amazing. I got some help making this in the past, so I'm not even as skilled as my attached spreadsheet would imply.

I'm trying to create a spreadsheet that a receptionist would use at a front desk. The tricky part is I want it to automatically track each ID's (column B) 6 most recent occurrences (appointments) from Column D. I have a separate tab that lists appointments for each unique ID (from Column B), and gives me the 6 most recent appointments. But I'm not sure how to match it up so that it's all on the same page and tied in so that it could be sorted if needed.

If anyone has any ideas, please let me know.
Here's a link to the spreadsheet:
 
I'm not at all sure just what final format you are wanting or on which sheet.
If this is not the sort of thing you are after then please fill in the desired results manually and post that again with further explanation.

BTW, many of the helpers here choose not to download files from other sites or, due to security restrictions at their workplace, are unable to download such files.
You will generally get more potential helpers if you explain your problem clearly in words and, if needed, post a small (copyable) screen shot or two directly in your post. My signature block at the bottom of this post has help regarding that - see the XL2BB link.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page.)

Cell Formulas
RangeFormula
I2:I14I2=LET(d,MAXIFS([Appointment Date (Today)],[Patient ID],[@[Patient ID]]),IF(d=0,"",d))
J2:J14J2=LET(d,MAXIFS([Appointment Date (Today)],[Patient ID],[@[Patient ID]],[Appointment Date (Today)],"<"&[@[Newest Appointment]]),IF(d=0,"",d))
K2:K14K2=LET(d,MAXIFS([Appointment Date (Today)],[Patient ID],[@[Patient ID]],[Appointment Date (Today)],"<"&[@[Previous 2]]),IF(d=0,"",d))
L2:L14L2=LET(d,MAXIFS([Appointment Date (Today)],[Patient ID],[@[Patient ID]],[Appointment Date (Today)],"<"&[@[Previous 3]]),IF(d=0,"",d))
M2:M14M2=LET(d,MAXIFS([Appointment Date (Today)],[Patient ID],[@[Patient ID]],[Appointment Date (Today)],"<"&[@[Previous 4]]),IF(d=0,"",d))
N2:N14N2=LET(d,MAXIFS([Appointment Date (Today)],[Patient ID],[@[Patient ID]],[Appointment Date (Today)],"<"&[@[Previous 5]]),IF(d=0,"",d))
 
Upvote 0
Solution
Yes I understand about the Drive issue. My issue is that I'm also limited by workplace IT policy and permissions. It was all I could come up with on the fly.

You, however, translated my garbled mess into beauty! Thank you for working that out. That worked perfectly! Color me impressed. Or conditional format me impressed, give that this is an Excel forum.:LOL:
 
Upvote 0
My issue is that I'm also limited by workplace IT policy and permissions.
Fair enough. In any future thread you start I suggest you mention that in post 1 so we don't keep asking. 😎

Thank you for working that out. That worked perfectly!
Good news and you are welcome. Thanks for the follow-up. :)
 
Upvote 0
Will do on future posts. I was thinking that was just commonplace and understood nowadays. But you’re correct. I left a lot to the imagination. My apologies and appreciation to you and the forum members.
 
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