Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum Prodcut issue from .txt import

I've reviewed the many SUMPRODUCT threads here, but none of the
solutions seem to be working. I have been using the same Sumproduct
formula and downloading new data from dvent Axys into excel using a
general import.

However, to make a long story short, we cannot use the excel export
anymore. Now we have to save the report as a .txt file and import it
into excel using the import wizard. I've been importing using fixed
width.

Once the data is pulled into excel, the sumproducts become #VALUE!.
Here is the formula

=SUM(('AXYS DATA'!$M$11:$M$65000="Research")*('AXYS DATA'!$K$11:$K
$65000)*('AXYS DATA'!$I$11:$I$65000=SUMMARY!$B19))


(('AXYS DATA'!$M$11:$M$65000="Research") searches for the word
"Research" in column M. However, after the .txt file is imported a
routine is performed via macro to make the word show exactly as we
want. First, the following formula is put in an adjacent column:
=IF(I11="","",IF(M11="research","Research",IF(M11= "Best
Execution","Best Execution",IF(M11="Directed","Directed","Other"))) )
Which returns one of the four words we're looking for. The if
statement is then copied and the values pasted in column M.
Therefore, the pasted values of this should return, unless I'm missing
something.

The ('AXYS DATA'!$K$11:$K$65000) is the variable row, as other columns
are substituted to return the different sums. However, when I make
this formula stand alone it does return a total. Therefore, I don't
think this is the problem.

(('AXYS DATA'!$I$11:$I$65000=SUMMARY!$B19)) "B19" is just filled with
a broker code, that changes each row. Column B beside the sumproduct
is pasted in from a filter of column I in the original workbook, so I
know these cells are the same.

If I manually export to excel, this workbook still works correctly.
However, I will need to automate an export to .txt and use the import
wizard. If anyone has any clue why my functions aren't working,
please let me know. Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum Prodcut issue from .txt import

Once the data is pulled into excel, the sumproducts become #VALUE!.

So, let's look at your formula:

('AXYS DATA'!$M$11:$M$65000="Research")
('AXYS DATA'!$I$11:$I$65000=SUMMARY!$B19)

Both of those arrays will return either TRUE or FALSE so the problem is not
being caused by either of those arrays.

(array1)*('AXYS DATA'!$K$11:$K$65000)*(array3)

If ('AXYS DATA'!$K$11:$K$65000) is not a number or an empty cell then the
result will be #VALUE!.

You may have leading/trailing spaces like this:

_10_
_10
10_

Whe

(array1)*(_10_)*(array3) = #VALUE!


--
Biff
Microsoft Excel MVP


"Chicago Joe" wrote in message
...
I've reviewed the many SUMPRODUCT threads here, but none of the
solutions seem to be working. I have been using the same Sumproduct
formula and downloading new data from dvent Axys into excel using a
general import.

However, to make a long story short, we cannot use the excel export
anymore. Now we have to save the report as a .txt file and import it
into excel using the import wizard. I've been importing using fixed
width.

Once the data is pulled into excel, the sumproducts become #VALUE!.
Here is the formula

=SUM(('AXYS DATA'!$M$11:$M$65000="Research")*('AXYS DATA'!$K$11:$K
$65000)*('AXYS DATA'!$I$11:$I$65000=SUMMARY!$B19))


(('AXYS DATA'!$M$11:$M$65000="Research") searches for the word
"Research" in column M. However, after the .txt file is imported a
routine is performed via macro to make the word show exactly as we
want. First, the following formula is put in an adjacent column:
=IF(I11="","",IF(M11="research","Research",IF(M11= "Best
Execution","Best Execution",IF(M11="Directed","Directed","Other"))) )
Which returns one of the four words we're looking for. The if
statement is then copied and the values pasted in column M.
Therefore, the pasted values of this should return, unless I'm missing
something.

The ('AXYS DATA'!$K$11:$K$65000) is the variable row, as other columns
are substituted to return the different sums. However, when I make
this formula stand alone it does return a total. Therefore, I don't
think this is the problem.

(('AXYS DATA'!$I$11:$I$65000=SUMMARY!$B19)) "B19" is just filled with
a broker code, that changes each row. Column B beside the sumproduct
is pasted in from a filter of column I in the original workbook, so I
know these cells are the same.

If I manually export to excel, this workbook still works correctly.
However, I will need to automate an export to .txt and use the import
wizard. If anyone has any clue why my functions aren't working,
please let me know. 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
Data Import to Excel Issue with Excel 2007 and Excel 2003 on same Melsh Excel Discussion (Misc queries) 0 August 1st 07 09:32 PM
Data import issue from Access Ken New Users to Excel 0 August 10th 06 04:37 PM
Import External Data -- Fill down formulas Issue Jonathan Excel Worksheet Functions 0 July 12th 06 04:17 PM
Import Issue Ed Bailey Excel Discussion (Misc queries) 0 May 1st 06 09:33 PM
issue with excel 2003 data import LNguyen Excel Discussion (Misc queries) 0 December 8th 05 07:42 PM


All times are GMT +1. The time now is 08:45 PM.

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"