Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
paul
 
Posts: n/a
Default External data _ TEXT problem

I am having some trouble with importing data.Its an MTA file I can import it
ok.I bring it all through as general format.I have a series of formulas on
the second sheet ie =sheet1!A2 because all the references go haywire when the
new data comes in.It seems to be inserted rather than pasted.However there is
a column of numbers which i am trying to sum if (on sheet 2 ) if another
letter is A in the same row.=istext(B8) is true but
if(istext(B8),"text","not")) comes up as not and my sumif is always 0.
i am not sure if the formula should be =sumif(B8:B3000,A,E8:E3000) or
=sumif(B8:B3000,"A",E8:E3000) either.
--
paul
remove nospam for email addy!

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

Unless A is a name, you'll want to use this:

=sumif(B8:B3000,"A",E8:E3000)
(with the quotes around "A")

And shouldn't you be checking:
=if(istext(E8),"text","not")

or maybe...

=count(e8:e3000)
=counta(e8:e3000)

=Count() will return the count of real numbers in E8:E3000.
=counta() will tell you the count of alpha/numeric or alpha-numeric cells.

If they match, then it's not a numeric problem.

I don't know what a .mta file is, but if there are funny characters like
non-breaking spaces in that cell, then that could be the problem. (Does an .mta
file come from the Web (HTML stuff)??)

Chip Pearson has a nice addin that can help you determine each character in a
cell:
http://www.cpearson.com/excel/CellView.htm

If it turns out that you have spaces (or those non-breaking spaces), David
McRitchie has some code that will help clean this junk up:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

paul wrote:

I am having some trouble with importing data.Its an MTA file I can import it
ok.I bring it all through as general format.I have a series of formulas on
the second sheet ie =sheet1!A2 because all the references go haywire when the
new data comes in.It seems to be inserted rather than pasted.However there is
a column of numbers which i am trying to sum if (on sheet 2 ) if another
letter is A in the same row.=istext(B8) is true but
if(istext(B8),"text","not")) comes up as not and my sumif is always 0.
i am not sure if the formula should be =sumif(B8:B3000,A,E8:E3000) or
=sumif(B8:B3000,"A",E8:E3000) either.
--
paul
remove nospam for email addy!


--

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

thanks Dave you helped me crack it there were trailing blanks or
spaces....=trim fixed it.MTA files open with notepad they are just data files
from the CAD package I use for prenailed framing and gangnail trusses for
houses(mostly)
--
paul
remove nospam for email addy!



"Dave Peterson" wrote:

Unless A is a name, you'll want to use this:

=sumif(B8:B3000,"A",E8:E3000)
(with the quotes around "A")

And shouldn't you be checking:
=if(istext(E8),"text","not")

or maybe...

=count(e8:e3000)
=counta(e8:e3000)

=Count() will return the count of real numbers in E8:E3000.
=counta() will tell you the count of alpha/numeric or alpha-numeric cells.

If they match, then it's not a numeric problem.

I don't know what a .mta file is, but if there are funny characters like
non-breaking spaces in that cell, then that could be the problem. (Does an .mta
file come from the Web (HTML stuff)??)

Chip Pearson has a nice addin that can help you determine each character in a
cell:
http://www.cpearson.com/excel/CellView.htm

If it turns out that you have spaces (or those non-breaking spaces), David
McRitchie has some code that will help clean this junk up:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

paul wrote:

I am having some trouble with importing data.Its an MTA file I can import it
ok.I bring it all through as general format.I have a series of formulas on
the second sheet ie =sheet1!A2 because all the references go haywire when the
new data comes in.It seems to be inserted rather than pasted.However there is
a column of numbers which i am trying to sum if (on sheet 2 ) if another
letter is A in the same row.=istext(B8) is true but
if(istext(B8),"text","not")) comes up as not and my sumif is always 0.
i am not sure if the formula should be =sumif(B8:B3000,A,E8:E3000) or
=sumif(B8:B3000,"A",E8:E3000) either.
--
paul
remove nospam for email addy!


--

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
Help - external data Excel Discussion (Misc queries) 0 April 11th 05 08:52 PM
How do I create a list in excel that contains external data? bill@bb Excel Discussion (Misc queries) 1 February 15th 05 02:45 AM
Help with data not getting plotted Scott Ehrlich Excel Discussion (Misc queries) 2 January 25th 05 05:17 AM
How can I check if data in external data range is changed after re Ruud Excel Discussion (Misc queries) 0 January 7th 05 12:07 PM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 10:06 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"