Conditional equation based upon two variables

dazedniteman

New Member
Joined
Dec 12, 2012
Messages
4
Good Afternoon,

I am trying to find a way to do conditional functions based upon multiple criteria and I can't seem to find a way to do this.

What I have:
Multiple columns of information: ID, Day of Week, Week of, Start Date/Time, End Date/Time

What I would like:
I'd like to subtract the start date/times from each other IF the 'ID' and 'Week of' match each other.

A bit more detail:
the file contains a list of various IDs and the start date which is associated with each ID. Some IDs are active a few times per week whereas others are active only once per week. I'm trying to find out the time between the same active ID if they are active multiple times during that same week.

The same type of question is applicable for other analysis I need to do -- do X if Y and Z are the same. The only thing is that it needs to be able to look through the excel sheet to see if there are multiple Y and Z's.

does that make sense?

Thanks for your help!!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi and welcome to MrExcel.

If you can provide some sample date of the table/range you have and the expected results you expect, then this will help people provide you with the appropriate solutions.

Something like this...

Excel Workbook
ABCDEFG
1IDDay of WeekWeek ofStart Date/TimeEnd Date/Time*Result Hrs
210Mon1110/12/2012 21:00:3112/12/2012 22:00:23**
311Sun1109/12/2012 21:00:3112/12/2012 22:00:23*72:59:52
410Sat1008/12/2012 20:00:3112/12/2012 22:00:23*97:59:52
512Fri1107/12/2012 19:00:3112/12/2012 22:00:23**
611Thu1106/12/2012 20:00:3112/12/2012 22:00:23*145:59:52
Sheet8


The formulas above need to be copied down.

I hope this helps.

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,640
Members
449,242
Latest member
Mari_mariou

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