Get a value from an unknown number of cells awy

jimrowland

New Member
Joined
Jul 14, 2013
Messages
12
Every month, I import a fairly large csv file with records about a company that we provide ride services for, and the daily activity for that company. I need to get the day-of-the-week for each row. The "problem" is that each day's activity may have from 1 to x number of rows, and only the first row (for that day) has the date-string value. I have no problem converting the date-string into a day-of-the-week text value: I simply use
Code:
TEXT(B2,"dddd")
But I cannot "copy down" this formula, because of all of the blanks that occur in between each row with a date value.

Here is a screenshot of what I have, and what I am trying to do.

excel.png


Each of the red-text weekday names were all done with the above formula. But all of the question marks highlighted need to also have the matching weekday name.

Option: Maybe I'm going about this all wrong. What I ULTIMATELY need is to know is: "how many total passengers did we move on Mondays"? (ALL Monday's, combined, for the whole month). Same for each day of the week. Right now, I manually copy/paste the weekday for all of the blank rows, and then I do the following:
Code:
=SUMIF('Raw Data'!$A:$A,"Monday",'Raw Data'!$H:$H)

There is a little bit of a glimmer of hope in that each day has a unique TripID, and each drive-leg for that specific day has a matching TripID. Perhaps it is possible to use these?

Thanks for any tips!

Jim
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try using this formula in cell A2 copied down...

=TEXT(IF(B2="",MAX(B$2:B2),B2),"dddd")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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