# Quick Formula Question

#### MikeSea

##### New Member
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

### Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

#### Richard Schollar

##### MrExcel MVP
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

##### MrExcel MVP
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.

Replies
3
Views
180
Replies
2
Views
194
Replies
2
Views
173
Replies
3
Views
146
Replies
3
Views
317

1,136,307
Messages
5,674,986
Members
419,541
Latest member
freddyboots

### 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.

### Which adblocker are you using?

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

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