Formula

ANGELSDIRTYFACE

New Member
Joined
Nov 19, 2009
Messages
13
Hi all,

I hope someone can help me with a formula for my table below for the last column Instance No. I want a formula that will number each instance if the department matches and the dates are overlapping or the same. As shown in the table below. Sorry if my explanation isn't brilliant, I'm struggling to find a solution on this.


EventStart DateEnd DateDepartmentInstance No
Fire safety1 Jan 153 Jan 15Health and Safety1
First Aid2 Jan 153 Jan 15Health and Safety2
Cash Handling1 Jan 151 Jan 15Accounting1
Travel Claims2 Jan 153 Jan 14Accounting1

<tbody>
</tbody>


Many Thanks

Becci
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Copy the formula in E2 down to cover all your data.
Excel Workbook
ABCDE
1EventStart DateEnd DateDepartmentInstance No
2Fire safety1-Jan-153-Jan-15Health and Safety1
3First Aid2-Jan-153-Jan-15Health and Safety2
4Cash Handling1-Jan-151-Jan-15Accounting1
5Travel Claims2-Jan-153-Jan-14Accounting2
Sheet5
 
Upvote 0
Row 5
Is this a typo?
Travel Claims2 Jan 153 Jan 14Accounting1

<tbody>
</tbody>

Shouldn't it be?
Travel Claims2 Jan 153 Jan 15Accounting1

<tbody>
</tbody>

Please, clarify.

M.
 
Last edited:
Upvote 0
Hi Joe,

Thanks for the quick response, I also need it to countif the dates are overlapping and the dept is the same else the instance would start back at 1, can you help with this too?

Becci
 
Upvote 0
Hi Joe,

Thanks for the quick response, I also need it to countif the dates are overlapping and the dept is the same else the instance would start back at 1, can you help with this too?

Becci
Sorry, guess I didn't read your post carefully. If the dates are involved then you need to respond to Marcelo's post #3.
 
Upvote 0
Hi Marcelo,

thanks I will give that a go and see if it works, essentially if the event overlaps another event and is held by the same dept i want the the number to count.
 
Upvote 0

Forum statistics

Threads
1,203,094
Messages
6,053,505
Members
444,667
Latest member
KWR21

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