PowerPivot, time between two times, one date cell

TheComputerMan08

New Member
Joined
Oct 17, 2013
Messages
3
Quick question for everyone who might be able to help:

I work in a call center and I am retrieving data from the call database, however, we have a need to show things broken down into half hour intervals. I see a LOT of tutorials about how to find the difference between two cells of time, but I only have one.

Basically, I have a datetime field, and I want to do this:

if the time falls between 00:00:00 and 00:29:00

I want the interval field I have to show nothing but "0"

then if it's 00:30:00 through 00:59:00

I want it to show "30"

then "100"
then "130"

etc.

but I can't do any more nested if's than 7, and vlookup is obnoxious to powerpivot for 86,000 calls and counting.
I am also having trouble getting JUST the time values to even compare it in the first place.


How can I do something like this?

I had a VB app doing this for me, and it was a bunch of elseif's, but with excel it's not as easy as manipulating data with code.

Any suggestions help.

thanks!

Brent
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Thought just crossed my mind, would I be better off to try and create a field of my own using the SQL query I have getting the data I've already got? I haven't researched about doing that yet, but maybe that's a better way to go to at least get the time field by itself first, and still then find a way to compare the times?

Just thinking out loud.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,643
Members
452,663
Latest member
MEMEH

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