Most common text string between dates

mat*46*

New Member
Joined
Sep 13, 2011
Messages
4
Hi, hoping one of you can help with my problem.

Basically I have a spreadsheet that I record every cycling trip I make. All of the data is on one sheet. In column A i have the date of the ride. In column J i have the name of the bike I used.

There is a seperate sheet called summary that gives me monthly totals.I.E. Miles, average speed etc.

Next to each month I would like excel to calculate the the bike that I used each month.

This formula tells me the bike I have used the most, but how do I get it to factor in the date and tell me which bike was used most in jan, which in feb etc.

=INDEX(Data!J3:J351,MODE(MATCH(Data!J3:J351,Data!J3:J351,0)))

Thanks in advance.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try something like this...

Code:
=INDEX(Data!J3:J351,MODE(IF([COLOR="Red"]TEXT(Data!A3:A351,"mmm")="Jan"[/COLOR],MATCH(Data!J3:J351,Data!J3:J351,0))))

This is an array formula. When you enter in this formula, use Ctrl+Shift+Enter. Excel will automatically surround the formula with {braces}.

There are different functions you could use to define the dates by month.
 
Upvote 0
Hi. Thanks for your reply. It's better but not quite right.

One thing I didn't make clear was that the dates on the data sheet a specific dates when I've been on my bike. Example 01/02/2011. The summary sheet is just the name of the month. June for example.

The summary sheet is split for each year and has been going since 2009. I need the formula to say that in june 2009 I used this bike the most, in december 2010 it was this bike etc.

Pretty anal I know but if anyone can help it would be appreciated.

Thanks
 
Upvote 0
This will find the most used bike for "Jan 2009". You could substitute the text "Jan 2009" for a cell reference which contains "Jan 2009"

Code:
=INDEX(Data!J3:J351,MODE(IF([COLOR="Red"]TEXT(Data!A3:A351,"mmm yyyy")="Jan 2009"[/COLOR],MATCH(Data!J3:J351,Data!J3:J351,0))))

This is an array formula. When you enter in this formula, use Ctrl+Shift+Enter. Excel will automatically surround the formula with {braces}.
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,473
Members
452,915
Latest member
hannnahheileen

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