#1   Report Post  
Mitch
 
Posts: n/a
Default Array Formula

I am trying to create a formula as per the excel help "Add numbers based on
multiple conditions" I have typed a similar formula into a spreadsheet and
are getting a #N/A error?
The data that i am using has been exported from SAP into excel, is it
because it may be in a text format? I have tried to convert this using the
text to columns function, but still no joy.
The formula is
=SUM(IF((YTD!$A$5:$A$5989="R02")*(YTD!$H$5:$H$5989 ="81310110"),YTD!$G$5:$G$5989))
  #2   Report Post  
Max
 
Posts: n/a
Default

Try, array-entered (press CTRL+SHIFT+ENTER):
=SUM(IF((YTD!$A$5:$A$5989="R02")*(YTD!$H$5:$H$5989 =81310110),YTD!$G$5:$G$598
9))

(quotes removed from: "81310110")

Alternatively, you could also try (normal ENTER):
=SUMPRODUCT((YTD!$A$5:$A$5989="R02")*(YTD!$H$5:$H$ 5989=81310110),YTD!$G$5:$G
$5989)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Mitch" wrote in message
...
I am trying to create a formula as per the excel help "Add numbers based

on
multiple conditions" I have typed a similar formula into a spreadsheet and
are getting a #N/A error?
The data that i am using has been exported from SAP into excel, is it
because it may be in a text format? I have tried to convert this using the
text to columns function, but still no joy.
The formula is

=SUM(IF((YTD!$A$5:$A$5989="R02")*(YTD!$H$5:$H$5989 ="81310110"),YTD!$G$5:$G$5
989))


  #3   Report Post  
Brett
 
Posts: n/a
Default

I don't understand why you would be getting the #N/A error specifically,
unless your array arguements had different numbers of rows. The formula you
have shown, however, doesn't have this problem, but maybe double check what
you have in your workbook. Also, from looking at your formula I would assume
that since the values in column H are text, so would be the values in column
G. In that case you would need to replace "YTD!$G$5:$G$5989" with
"VALUE(YTD!$G$5:$G$5989)" in order to get a sum.

"Mitch" wrote:

I am trying to create a formula as per the excel help "Add numbers based on
multiple conditions" I have typed a similar formula into a spreadsheet and
are getting a #N/A error?
The data that i am using has been exported from SAP into excel, is it
because it may be in a text format? I have tried to convert this using the
text to columns function, but still no joy.
The formula is
=SUM(IF((YTD!$A$5:$A$5989="R02")*(YTD!$H$5:$H$5989 ="81310110"),YTD!$G$5:$G$5989))

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
Formula to count number of dates in an array Lilasviolet Excel Worksheet Functions 2 April 7th 05 07:44 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Will an Array Formula work here? Rob Gould Excel Discussion (Misc queries) 2 February 1st 05 01:25 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 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 09:46 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"