Find MAX number in range formatted at TEXT

RobbieC

Active Member
Joined
Dec 14, 2016
Messages
376
Office Version
  1. 2010
Platform
  1. Windows
Hi there, I know that the answer to this is staring me in the face, but I can't get my brain into gear this morning

I have a range (I182:I186) which is reflecting dates from other sheets (date formatted 20180116). This range is formatted as TEXT as the reference cells are also formatted as TEXT (generated via vba) - I cannot change this...

so I have a range which looks like:

20180110
20180101
20180108
20180116
20180109

I thought I could use:

Code:
=MAX(I182:I186) // this cell is formatted as GENERAL

to simply return the largest number, but it just returns 0, but should be returning 20180116

What am I doing wrong? My brain hurts :(
 
Thanks mate - I just couldn't see the wood for the trees... been driving me crazy and I was thinking the problem lay with cell formatting.... doh!
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,827
Messages
6,181,198
Members
453,022
Latest member
RobertV1609

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