converting numbers into text

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
the example mentions wild cards so searching for numbers beginning and ending in 5 would find 505 515 525 to 595 with "5*5" otherwise that would be 25 5 times 5
 
Upvote 0
One example that I often use is on date values.

ie, if I want to change 15/4/18 (in A1) to 1804 (ignoring day), then I'll use =TEXT(A1,"YYMM").

Or if you only want the month, then =TEXT(A1,"mmmm") then you'll get April.
 
Upvote 0
Similar to what mole999 has posted but I would normally concatenate the wild cards to allow the use of cells to hold the number rather than hard coding the search number in the text string i.e. as per C2 & C3 below.

In the formulas in C1:C3 the $A$1:$A$4&"" is converting the array of numbers to text, if you don't (or convert the actual numbers to text) then you get the result in H1.
I1 is just there to demonstrate what mole999 has stated (select the cell then formula tab - Evaluate formula - click Evaluate and see the result in the formula. click Evaluate again to see what the 25 is matching against)

Clearer on what the article is saying?


Excel 2010
ABCDEFGHI
1507352#N/A#N/A
25173
35654
4295
Sheet3
Cell Formulas
RangeFormula
H1{=MATCH(5&"*"&5,$A$1:$A$4,0)}
I1{=MATCH(5*5,$A$1:$A$4&"",0)}
C1{=MATCH(5&"*"&5,$A$1:$A$4&"",0)}
C2{=MATCH(E1&"*"&E1,$A$1:$A$4&"",0)}
C3{=MATCH(F1&"*"&E1,$A$1:$A$4&"",0)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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