Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 542
Default converting from text to number

I have a spread sheet of entire year schedule. The format as following:

1 2 3 .... 31
row 1
row 2
row 3 Jan
row 4
row 5 Feb

row x Dec

I would like to replace column 1 up to Jan to 1. Replace the cell below Jan
to Feb to 2. etc.

Would anyone help.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default converting from text to number

set rng = columns(1).SpecialCells(xlBlanks)
i = 1
for each ar in rng.areas
ar.Value = i
i = i + 1
Next

--
Regards,
Tom Ogilvy

"james" wrote in message
...
I have a spread sheet of entire year schedule. The format as following:

1 2 3 .... 31
row 1
row 2
row 3 Jan
row 4
row 5 Feb

row x Dec

I would like to replace column 1 up to Jan to 1. Replace the cell below

Jan
to Feb to 2. etc.

Would anyone help.

Thanks in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a text word or text string to a number Tom Excel Discussion (Misc queries) 6 January 2nd 09 08:23 PM
Converting number to text Markdb Excel Discussion (Misc queries) 1 January 10th 07 08:50 PM
Converting number to text rslater44 Excel Discussion (Misc queries) 1 March 2nd 06 09:56 PM
Converting Text to Number Andrew Bartholomew Excel Discussion (Misc queries) 1 March 25th 05 02:50 AM
Converting text to a number Helen Black Excel Worksheet Functions 1 January 18th 05 04:08 PM


All times are GMT +1. The time now is 01:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"