#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default error with formula

I have the following formula which worked on original data

=SUMPRODUCT(--('Raw data'!$AF$1:$AF$5291="0001-01-01"),--('Raw
data'!$L$1:$L$5291="railcomm1"))

In using this for new data, the result comes back with an #N/A, yet all data
is in the same place, but in a different order.

It won't let me trace the error, and can't see why its wrong. Please help

Column L Column AF
RAILCOMM0 12/07/2006
RAILCOMM1 0001-01-01
RAILCOMM1 0001-01-01
BTCAR1 0001-01-01
BTCOMM1 0001-01-01
BTCOMM0 12/07/2006
BTCOMM1 0001-01-01
BTCOMM1 0001-01-01
BTCOMM0 12/07/2006
BTCOMM1 0001-01-01
BTCOMM1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default error with formula

.. In using this for new data, the result comes back with an #N/A

Probably there's an #N/A somewhere within the new data in either cols L or
AF which is throwing things off

Try this instead:
=SUMPRODUCT((ISNUMBER(SEARCH("railcomm1",'Raw
data'!$L$1:$L$5291))*(ISNUMBER(SEARCH("0001-01-01",'Raw
data'!$AF$1:$AF$5291)))))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"holyman" wrote:
I have the following formula which worked on original data

=SUMPRODUCT(--('Raw data'!$AF$1:$AF$5291="0001-01-01"),--('Raw
data'!$L$1:$L$5291="railcomm1"))

In using this for new data, the result comes back with an #N/A, yet all data
is in the same place, but in a different order.

It won't let me trace the error, and can't see why its wrong. Please help

Column L Column AF
RAILCOMM0 12/07/2006
RAILCOMM1 0001-01-01
RAILCOMM1 0001-01-01
BTCAR1 0001-01-01
BTCOMM1 0001-01-01
BTCOMM0 12/07/2006
BTCOMM1 0001-01-01
BTCOMM1 0001-01-01
BTCOMM0 12/07/2006
BTCOMM1 0001-01-01
BTCOMM1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default error with formula

Such a simple reason why it wouldn't work........totally right, had #N/A's in
the data. Thanks muchly, should of seen it myself mind.

"Max" wrote:

.. In using this for new data, the result comes back with an #N/A


Probably there's an #N/A somewhere within the new data in either cols L or
AF which is throwing things off

Try this instead:
=SUMPRODUCT((ISNUMBER(SEARCH("railcomm1",'Raw
data'!$L$1:$L$5291))*(ISNUMBER(SEARCH("0001-01-01",'Raw
data'!$AF$1:$AF$5291)))))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"holyman" wrote:
I have the following formula which worked on original data

=SUMPRODUCT(--('Raw data'!$AF$1:$AF$5291="0001-01-01"),--('Raw
data'!$L$1:$L$5291="railcomm1"))

In using this for new data, the result comes back with an #N/A, yet all data
is in the same place, but in a different order.

It won't let me trace the error, and can't see why its wrong. Please help

Column L Column AF
RAILCOMM0 12/07/2006
RAILCOMM1 0001-01-01
RAILCOMM1 0001-01-01
BTCAR1 0001-01-01
BTCOMM1 0001-01-01
BTCOMM0 12/07/2006
BTCOMM1 0001-01-01
BTCOMM1 0001-01-01
BTCOMM0 12/07/2006
BTCOMM1 0001-01-01
BTCOMM1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01
GOVERNMENT DEPARTMENTSCAR1 0001-01-01

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default error with formula

"holyman" wrote:
Such a simple reason why it wouldn't work........totally right, had #N/A's in
the data. Thanks muchly, should of seen it myself mind.


You're welcome. Guess you probably corrected the data.
Try also the suggested alternative.
It'll work even if the data contained #N/As
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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