Avatar of linwoodmwright
linwoodmwright
 asked on

NEED EXCEL Function - Imported data needs to be converted from Text to Number

I'm importing data from a SQL Server 2008 Standard DB to Excel 2010.
The Column I'm importing is varchar and I need a function to convert it to a number in Excel so that I can run an IF function.

I've tried a lot of functions, but nothing does the trick.




Thanks,
Linwood
Microsoft Excel

Avatar of undefined
Last Comment
linwoodmwright

8/22/2022 - Mon
Norie

There are various ways you could do it, without a formula.

Here's one.

Select a blank cell, select the data to be converted, goto Paste>Paste Speciall... and in the Operation section select Add(or Subtract).

Or you could convert it in SQL using CAST/CONVERT.
linwoodmwright

ASKER
Thanks imnorie - This is a database connection, not a copy/paste import.  And, the data will be re-imported daily.

I cannot modify the SQL Server DB.
ASKER CERTIFIED SOLUTION
Norie

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
linwoodmwright

ASKER
hmm - I've never seen that one.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck