Quick Formula Question

MikeSea

New Member
Joined
Oct 13, 2006
Messages
6
I'm trying to get a couple of Dates to be included in a cell with some text and the results is displaying incorrectly.

This is the formula I'm using:-

=C3&" Expires Between "&C4&" "&MIN(TrafficFirst!A4:A15)&" To "&MAX(TrafficFirst!A4:A15)

This is the desired result:-

"Packets Expire between Apr 2006 To March 2007"

This is what is being shown:-

First Class Yorks 38808 To 39142

Can anyone please assist?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Mike

You need to format the dates (within the formula):

=C3&" Expires Between "&C4&" "&TEXT(MIN(TrafficFirst!A4:A15),"mmm yy")&" To "& TEXT(MAX(TrafficFirst!A4:A15),"mmm yy")

Not sure why your text is incorrect at the beginning though - you should check your cell references.

Best regards

Richard
 
Upvote 0
Hi Mike

You need to format the dates (within the formula):

=C3&" Expires Between "&C4&" "&TEXT(MIN(TrafficFirst!A4:A15),"mmm yy")&" To "& TEXT(MAX(TrafficFirst!A4:A15),"mmm yy")

Not sure why your text is incorrect at the beginning though - you should check your cell references.

Best regards

Richard

Place

mmm yy

in B2 on an Admin sheet and name B2 MonthYearFormat.

Now invoke:

=C3&" Expires Between "&C4&" "&TEXT(MIN(TrafficFirst!A4:A15),MonthYearFormat)&" To "& TEXT(MAX(TrafficFirst!A4:A15),MonthYearFormat)

in order to facilitate changes in formatting and easier parsing on different Excel language versions.
 
Upvote 0

Forum statistics

Threads
1,214,517
Messages
6,119,984
Members
448,935
Latest member
ijat

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