HI,
I want to arrange date wise rows in single column. Sample sheet attached with expected result.
Thanks
HI,
I want to arrange date wise rows in single column. Sample sheet attached with expected result.
Thanks
Last edited by AliGW; 05-10-2023 at 06:27 AM.
You can do this easily with a formula. DELETE all expected results, first.
Formula:![]()
=LET(A,B2:C71,B,UNIQUE(INDEX(A,,1)),C,IFERROR(DROP(REDUCE(0,B,LAMBDA(x,y,VSTACK(x,TRANSPOSE(FILTER(INDEX(A,,2),INDEX(A,,1)=y))))),1),""),HSTACK(B,C))
Format the date column as date, and the time columns as time.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
Hi Glenn, formula is not working. showing error. Please suggest
Or a much less exciting but manual method (Cell J2 and copy down/across)
Formula:![]()
=MINIFS( $C:$C, $B:$B, $I2, $E:$E, TRIM(LEFT(J$1,9)), $C:$C, ">"&IF(I2>1,0,I2) )
<<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts
Sorry this formula is not working on my data set
What VERSION of O365 do you have. You can find this in your account page.
HI ,
I am using MS Office 2016
Version is shown here:
Then why does your profile say Office 365??? Please get that changed NOW.I am using MS Office 2016
The formula in post #3 DOES work on your dataset, so the question is: what is different about your REAL dataset compared to the sample you shared?
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. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Why does your profile say O365????????
sorry for the inconvenience. I have corrected my version in my profile.
Please answer my question in post #9.
Sample file attached with using formula in post 3. Formula is showing error.
No - that's what you posted before. Please share a version showing the solution in post #3 - we need to see what errors you are getting.
EDIT: Sorry - just realised that it uses MINIFS, which you don't have.
Last edited by AliGW; 05-10-2023 at 06:21 AM.
File attached with using of formula in post 3. Please check and do the needful.
Yes, sorry - you don't have MINIFS.
Having the wrong product in your profile has wasted a lot of time for you today.
Let's hope that someone will be able to give you a solution for Excel 2016. Good luck!
For 2016, try this instead in cell J2 - and adjust the ranges as required
Formula:![]()
=MIN(IF(($B2:$B9999=$I2)*($E2:$E9999=TRIM(LEFT(J$1,9)))*($C2:$C9999>IF(I2>1,0,I2)),$C2:$C9999))
HI thanks for the Solution and it is working but when i drag it to columns it dont stop stop showing values. Example : IF we I continue drag it from cell J2 (where date is 1st May) than it is showing till Nth column, rather showing till the date is 1st May. Any possibilities to correct it.
I think this will need array entering.
**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Are you entering this as an array formula as explained by AliGW? If not, follow this and see if it works.
Otherwise can you post a screenshot of what you are seeing, as I don't follow the description and can't replicate the issue with a different version of excel.
Yes, I exactly followed that. please see the attached file screen shot , where, after a zero it shows same value as showing in starting. I need to remove it through formula not manual
You didn't really ANSWER my Q about WHY your profile showed O365, when you are ACTUALLY using a much older product...
I2, copied down:
=IFERROR(INDEX($B$2:$B$71,MATCH(1,INDEX(--ISNA(MATCH($B$2:$B$71,I$1:I1,)),),)),"")
J2, copied across and down.
=IFERROR(INDEX($C:$C,AGGREGATE(15,6,ROW($C$2:$C$71)/($B$2:$B$71=$I2),COLUMNS($J2:J2))),"")
Both formula need only ENTER...
ah, I see. A bit lengthy, but you can try something like this (entered with control+shift+enter)
Formula:![]()
=IF( OR( I2="-", I2=MAX(IF($B$2:$B$9999=$I2,$C$2:$C$9999)) ), "-", MIN( IF( ($B2:$B9999=$I2) * ($E2:$E9999=TRIM(LEFT(J$1,9))) * ($C2:$C9999 > IF( I2>1,0,I2) ), $C2:$C9999) ) )
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 all those who offered help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks