Help please

GH19NEL

New Member
Joined
Sep 8, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I'm a newbie here so please don't be too harsh with me:) I apologise if this has been covered somewhere before, but I can't find any information on what I'm looking to achieve.

Here goes,

I'll have a Master sheet that I will populate with ID numbers, names, dates and number of days etc, so it will be updated with new data frequently. The problem being there will be duplicate ID numbers and names appearing all the time.

Ideally, what I would like it to do is auto populate a separate sheet with it pulling the ID number and name through (only once, so I'd like it to automatically remove duplicates in the process), whilst adding up the number of days associated with these multiple lines of ID numbers.
Hopefully I make sense 🥴 I thought I was good at excel but I can't put my finger on the best way to approach it and actually feel a bit silly asking this question which is probably a walk in the park for most of you.

Thank you for taking the time to read this.
 
I suspect that some of the IDs are text & some are numbers.
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Fluff
Apologies in the delay, it works. Not that I ever doubted it:). I've attempted trying to bring in another column that contained values (column I in the above example) I am starting to understand it, but I can't manage to get it to work. Should I be adding another HSTACK with a sumifs again?
Thank you for your time in helping me.
 
Upvote 0
To add another column just include it in the Hstack, like
Excel Formula:
=LET(u,UNIQUE(FILTER(A2:E1000,A2:A1000<>"")),HSTACK(u,SUMIFS(H:H,A:A,INDEX(u,,1)),someother formula))
 
Upvote 0
Fluff this is perfect. Apologies, if you don't mind, I have another question? If the same ID number appeared multiple times but on occasions, the 'home' or 'where' column was different, (for e.g Mickey Mouse appears above as Home = Disneyworld and where = Clubhouse) If he happens to be Home = London & Where = Baker Street, it will include this new line of data although it's a duplicate 'ID number'. Is it possible to not include in the summary as it's a duplicate? or does this become more complex formula?
I appreciate all your help and this has really helped my development too and I'm starting to understand more.
Kind Regards
 
Upvote 0
If the Home & Where are different which one should be dropped?
 
Upvote 0
If the Home & Where are different which one should be dropped?
Potentially, both could be different, but I don't want to over complicate, so lets go for where, as I can workaround the other column or potentially take it out.
 
Upvote 0
What I mean is if you have something like
Fluff.xlsm
ABCDEFGH
1ID No.ForenameSurnameHomeWhereFromToNo. of days
2147586MickeyMouseBristolCity Road44713447173
7147586MickeyMouseDisneyworldClubhouse44732447332
Data


Which of these two rows should be displayed?
 
Upvote 0
E is a column not a row, so do you want to see row 2 or row 7, or doesn't it matter which?
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,059
Members
452,542
Latest member
Bricklin

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