Dear all,
i have attached table for staff attendance.
could anyone help me to provide a formula as per my requirement in sheet attached.
all yellow highlighted is my requirement.. thanks
thanks in advance.
Dear all,
i have attached table for staff attendance.
could anyone help me to provide a formula as per my requirement in sheet attached.
all yellow highlighted is my requirement.. thanks
thanks in advance.
Last edited by tariqnaz2005; 12-25-2023 at 07:04 AM.
Which version of Excel are you using?
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
dear AliGW thanks for response..
it is
Microsoft® Excel® 2019 MSO (Version 2311 Build 16.0.17029.20028) 64-bit
Please update your forum profile to Excel 2019. Do this NOW, please.
dear madam,
i have updated my profile to office 2019.. thanks for guidline.
Thanks.
=SUMPRODUCT(($A$3:$A$6=$J3)*($B$3:$H$6=R$2))
Try this formula
Last edited by AliGW; 12-16-2023 at 11:45 AM. Reason: HTML tags corrected.
Willem
English is not my native language sorry for errors
Please correct me if I'm completely wrong
That doesn't address the whole problem. It only works for the last three columns - the OP needs everything in the yellow section.
K3 copied down.Might need to be Array Entered.Formula:Please Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
I changed TMS formula a little
In K3 put formula =INDEX(B$3:B$6,MATCH($J3,$A$3:$A$6,0))&""
Drag the formula down to K5
Drag the formulas right to column Q
In R3 put formula =COUNTIF(K3:Q3,R$2)
Drag formula right and down
Correct the formula in R3 to =COUNTIF($K3:$Q3,R$2) in attached file
/LGS
Last edited by LARS GULYAS; 12-17-2023 at 08:34 PM. Reason: Correct formula
If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.
Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
@LARS GULYAS:
Not entirely sure why you would do this:
This:I changed TMS formula a little
In K3 put formula =INDEX(B$3:B$6,MATCH($J3,$A$3:$A$6,0))&""
Drag the formula down to K5
Drag the formulas right to column Qshould be:Formula:Please Login or Register to view this content.Formula:Please Login or Register to view this content.
TMS
Thanks, I missed that $-sign in column R
It was OK in column S, T
/LGS
@LGS:Not if you put that formula in cell R3 and drag it across and down . . .It was OK in column S, T
DEAR AliGW AND TMS AND LARS GULYAS & popipipo ,
Thanks all of you 4 guys for your efforts for my questions. sorry i was away from office because of death of our King of Kuwait on Saturday.
the formula given by LARS GULYAS and modified by TMS for R2:T5 Formula exactly what i was looking for.. thanks it work perfectly.
However, i wish if i change any of 2 ranges .. i.e. date range K:2 to Q2 and if I change name range A3:A5, i should get the same data from the range A2:H6.. is it possible?
thanks in advance
Last edited by tariqnaz2005; 12-19-2023 at 05:40 AM.
You're welcome.
Please upload a new file with the change in layout/requirements.
tariqnaz2005
Put this Formula in K3
=VLOOKUP($J3,$A$2:$H$6,MATCH(K$2,$A$2:$H$2,0),0)&""
Drag down to K5 and right to Q5.
Erace J11
I often use this formula in tables to sort in the right order,
e.g. football, ice-hockey, handboll tables to see the current standing
Name and Date can be arranged as you like (any way)
Hope it takes care of your question
/LGS
Last edited by LARS GULYAS; 12-19-2023 at 04:58 PM. Reason: ed formula
LARS GULYAS.. thanks. it works fine.. thanks u guts for always support..
thanks to ALIGW
Hey guys can we not use a simple countif forumla for the same :
=IF(COUNTIFS($B10:$H10,J$9)=0,"",COUNTIFS($B10:$H10,J$9))
Here B10:H10 is the sample range with column J having the Absent , sick and leave options
@tariqnaz2005: You're welcome. Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks