Share via

Problem with LET function

Anonymous
2024-03-14T08:04:17+00:00

My intended post apparently exceeded 6000 characters and was refused.

So now I ask if someone is willing to take a look at

https://www.dropbox.com/scl/fi/lh716d3l6ghlvz33hmnxn/Problems_with_LET.xlsx?rlkey=1hq8rfpv65dy29mu1g6v30e14&dl=0

and hopefully help me to create a LET formula.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2024-03-14T10:02:50+00:00

    F2: =LET(u,UNIQUE(d[Name]),

    f,MINIFS(d[Idx],d[Name],u),

    t,MAXIFS(d[Idx],d[Name],u),

    j,UNIQUE(d[Job]),

    h,SUMIF(d[Name],u,d[Hours]),

    i,IF(f=t,f,f&"-"&t),

    HSTACK(u,j&", "&i,h))

    Sample file
    https://1drv.ms/x/s!AsEpmlJLteaskw-LkkXpcGfrvmpf?e=yGhG3Q

    1 person found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Rory Archibald 18,885 Reputation points Volunteer Moderator
    2024-03-14T09:33:43+00:00

    Hi,

    You could use SUMIF with your array of unique names as criteria:

    =LET(u,UNIQUE(d[Name]),

    m,UNIQUE(d[Job])&", "&MINIFS(d[Idx],d[Name],u)&"-"&MAXIFS(d[Idx],d[Name],u),

    h,SUMIF(d[Name],u,d[Hours]),

    a,HSTACK(u,m,h),

    a

    )

    1 person found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Rory Archibald 18,885 Reputation points Volunteer Moderator
    2024-03-14T13:43:02+00:00

    No, they were there - you just need to resize the column.

    0 comments No comments
  2. Anonymous
    2024-03-14T12:52:04+00:00

    @Rory Archibald

    Thank you very much.

    Almost what I wanted. I only miss the Idx-number after job title (1-3 for Mechanic, 4-4 or just 4 for Bricklayer etc.)

    0 comments No comments
  3. Anonymous
    2024-03-14T12:47:16+00:00

    @Andreas Killer

    Again, again you give me exactly what I wanted, Thank you very much.

    Hans K.

    0 comments No comments