Converting Text to Values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I get a large block of data from another source that is in text format that
I need converted to values in order to perform calculations. Beyond creating
a second worksheet linked to the first, I'm at a loss (e.g.
=Value(Sheet1!A1)). Any suggestions using VBA?

TIA!
 
Hi

1st way:
Format the block of data as general or number;
Insert a number 1 (or 0) into any free cell, and copy it;
Select your data;
Paste Special - check Multiply (or Add), and click OK.

2nd way:
Select a range from column;
Format the range as general or number;
From Data menu, select TextToColumns, continue with delimited, remove all
delimiters (in case you have not only numbers in selected range), set column
format to General, and click Finish. (When you have only numbers in text
format - without any spaces etc. - then simply TextToColumns>Finish).
 
Embarrassingly simple.... Thank you.

Arvi Laanemets said:
Hi

1st way:
Format the block of data as general or number;
Insert a number 1 (or 0) into any free cell, and copy it;
Select your data;
Paste Special - check Multiply (or Add), and click OK.

2nd way:
Select a range from column;
Format the range as general or number;
From Data menu, select TextToColumns, continue with delimited, remove all
delimiters (in case you have not only numbers in selected range), set column
format to General, and click Finish. (When you have only numbers in text
format - without any spaces etc. - then simply TextToColumns>Finish).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top