Check if a value is in a list of ranges and more

Kensei

New Member
Joined
Dec 20, 2015
Messages
10
Hello,

I have the following data:
ABCDE
Ranges<strike></strike>TimeSeconds
1:06:31 PM<strike></strike>1:07:00 PM<strike></strike>1:06:54 PM<strike></strike>3.739
1:07:01 PM<strike></strike>1:07:30 PM<strike></strike>1:07:15 PM<strike></strike>3.124
1:07:31 PM<strike></strike>1:08:00 PM<strike></strike>1:07:56 PM<strike></strike>7.436
1:08:01 PM<strike></strike>1:08:30 PM<strike></strike>1:08:28 PM<strike></strike>5.818
1:08:31 PM<strike></strike>1:09:00 PM<strike></strike>1:08:56 PM<strike></strike>2.308
1:09:01 PM<strike></strike>1:09:30 PM<strike></strike>1:09:18 PM<strike></strike>2.473
1:09:31 PM<strike></strike>1:10:00 PM<strike></strike>1:09:36 PM<strike></strike>9.716
1:10:01 PM<strike></strike>1:10:30 PM<strike></strike>1:09:40 PM<strike></strike>2.158
1:10:31 PM<strike></strike>1:11:00 PM<strike></strike>1:10:11 PM<strike></strike>1.924
1:11:01 PM<strike></strike>1:11:30 PM<strike></strike>1:10:47 PM<strike></strike>7.052
1:11:31 PM<strike></strike>1:12:00 PM<strike></strike>1:11:56 PM<strike></strike>7.364
1:12:01 PM<strike></strike>1:12:30 PM<strike></strike>1:12:37 PM<strike></strike>3.788
1:12:31 PM<strike></strike>1:13:00 PM<strike></strike>1:13:06 PM<strike></strike>4.9
1:13:01 PM<strike></strike>1:13:01 PM<strike></strike>

<tbody>
</tbody>

I have to check in which of the ranges (Column A and B) do the recorded times in column D go and to sum the seconds in column E for each range.
It seems to be a easy to do thing, but I can't figure it out.

Thank you in advance for all of your help!
Val
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Does this work?

in C2
=MATCH(D2,A$2:A$15,1)
and copy down

Not sure what you mean by "sum the seconds in column E for each range"

Prob best if you provide some expected output.
 
Upvote 0
I added expected result in column F, also in column H I put how the result in column F is calculated. I did this result manually and I need a formula to calculated it automatically as the data files contain hundred of rows.
I hope it's clearer now what I need as result.


ABCDEFGH
1 Time Seconds Ranges Result
21:06:54 PM3.7391:06:31 PM1:07:00 PM3.739=C2
31:07:15 PM3.1241:07:01 PM1:07:30 PM3.124=C3
41:07:56 PM7.4361:07:31 PM1:08:00 PM7.436=C4
51:08:28 PM5.8181:08:01 PM1:08:30 PM5.818=C5
61:08:56 PM2.3081:08:31 PM1:09:00 PM2.308=C6
71:09:18 PM2.4731:09:01 PM1:09:30 PM12.189=C7+C8
81:09:30 PM9.7161:09:31 PM1:10:00 PM2.158=C9
91:09:40 PM2.1581:10:01 PM1:10:30 PM8.976=C10+C11
101:10:11 PM1.9241:10:31 PM1:11:00 PM
111:10:28 PM7.0521:11:01 PM1:11:30 PM
Sum45.748 Sum45.748

<tbody>
</tbody>


Thank you in advance!
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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