Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
schmiedel
 
Posts: n/a
Default Import plain text with formulas into Excel


I'm having some trouble in Excel. If I create a plain text file like the
following:

1,2,3
4,5,6
=sum(a1:a2), =sum(b1:b2)

Nothing can be done as if in spanish is (SI), iserror is (ESERROR), and
so on. This really sucks as I can't just install other software on the
server nor make other modifications.

I don't know what Microsoft was thinking when they translated the
versions; any Excel version should accept it's language commands and
English commands, but well, that's too much to ask for...

Any good sugestions?

Regards


--
schmiedel
------------------------------------------------------------------------
schmiedel's Profile: http://www.excelforum.com/member.php...o&userid=28086
View this thread: http://www.excelforum.com/showthread...hreadid=475927

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Read the text file and parse it yourself.

When you find a value that looks like a formula (starts with an equal sign??),
you can process that string special.

Chip Pearson has some code at:
http://www.cpearson.com/excel/imptext.htm

It looks to me like there would be one line to change:

Cells(RowNdx, ColNdx).Value = TempVal
becomes
Cells(RowNdx, ColNdx).Formula = TempVal

But be a little careful.

If your text strings contain commas:
=if(a1="",a1+3,a1^2)
You'll have to parse that as one string.





schmiedel wrote:

I'm having some trouble in Excel. If I create a plain text file like the
following:

1,2,3
4,5,6
=sum(a1:a2), =sum(b1:b2)

Nothing can be done as if in spanish is (SI), iserror is (ESERROR), and
so on. This really sucks as I can't just install other software on the
server nor make other modifications.

I don't know what Microsoft was thinking when they translated the
versions; any Excel version should accept it's language commands and
English commands, but well, that's too much to ask for...

Any good sugestions?

Regards

--
schmiedel
------------------------------------------------------------------------
schmiedel's Profile: http://www.excelforum.com/member.php...o&userid=28086
View this thread: http://www.excelforum.com/showthread...hreadid=475927


--

Dave Peterson
  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

This line doesn't apply:

When you find a value that looks like a formula (starts with an equal sign??),
you can process that string special.


I looked at Chip's code after I wrote that and should have deleted that
sentence.

Dave Peterson wrote:

Read the text file and parse it yourself.

When you find a value that looks like a formula (starts with an equal sign??),
you can process that string special.

Chip Pearson has some code at:
http://www.cpearson.com/excel/imptext.htm

It looks to me like there would be one line to change:

Cells(RowNdx, ColNdx).Value = TempVal
becomes
Cells(RowNdx, ColNdx).Formula = TempVal

But be a little careful.

If your text strings contain commas:
=if(a1="",a1+3,a1^2)
You'll have to parse that as one string.

schmiedel wrote:

I'm having some trouble in Excel. If I create a plain text file like the
following:

1,2,3
4,5,6
=sum(a1:a2), =sum(b1:b2)

Nothing can be done as if in spanish is (SI), iserror is (ESERROR), and
so on. This really sucks as I can't just install other software on the
server nor make other modifications.

I don't know what Microsoft was thinking when they translated the
versions; any Excel version should accept it's language commands and
English commands, but well, that's too much to ask for...

Any good sugestions?

Regards

--
schmiedel
------------------------------------------------------------------------
schmiedel's Profile: http://www.excelforum.com/member.php...o&userid=28086
View this thread: http://www.excelforum.com/showthread...hreadid=475927


--

Dave Peterson


--

Dave Peterson
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
Excel formulas to create large blocks of text Greg Boettcher Excel Discussion (Misc queries) 5 June 12th 05 06:41 PM
How do I import several text files into excel or access ? acechef11 Excel Discussion (Misc queries) 2 June 9th 05 08:12 PM
Where is text to speech in excel 2003? BogieJr Excel Discussion (Misc queries) 2 March 26th 05 08:04 PM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM
Excel Text import wizard Kate Excel Discussion (Misc queries) 1 February 23rd 05 06:40 PM


All times are GMT +1. The time now is 12:52 AM.

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

About Us

"It's about Microsoft Excel"