Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chrism
 
Posts: n/a
Default Changing a range of an array in a SUMPRODUCT formula gives a #N/A error

I have a working SUMPRODUCT formula
{=SUMPRODUCT(($C$4:$C$4341=z8)*(audittypefm1="Stan dard"))} that I need
to change the 1st array to C5623. When I do I get a #N/A error. I've
tried giving the range a name (empnofm2), and I've verified all the
data in the C4:C5623 range is formated the same (general, it is all
employee numbers from 2 to 5 digits long. I'm using a "trim all" macro
which is working great. I am unable to determine what is causing the
#N/A and how to fix it. Basically I copied an entire worksheet within
the same workbook and changed the name, which I will continue to do for
each fiscal month. I then import the new FM data from Access and make
any necessary changes to formulas and range names to ensure totals are
accurate.. This is the only part that's not working.

HELP

Thanks
Chrism

  #3   Report Post  
bj
 
Posts: n/a
Default

did you also change the range for "audittypefm1" to have the same number of
cells?
arrays in sumproduct have to be the same size

"Chrism" wrote:

I have a working SUMPRODUCT formula
{=SUMPRODUCT(($C$4:$C$4341=z8)*(audittypefm1="Stan dard"))} that I need
to change the 1st array to C5623. When I do I get a #N/A error. I've
tried giving the range a name (empnofm2), and I've verified all the
data in the C4:C5623 range is formated the same (general, it is all
employee numbers from 2 to 5 digits long. I'm using a "trim all" macro
which is working great. I am unable to determine what is causing the
#N/A and how to fix it. Basically I copied an entire worksheet within
the same workbook and changed the name, which I will continue to do for
each fiscal month. I then import the new FM data from Access and make
any necessary changes to formulas and range names to ensure totals are
accurate.. This is the only part that's not working.

HELP

Thanks
Chrism


  #4   Report Post  
Chrism
 
Posts: n/a
Default

EXACTLY!
I named the ranges so missed that they referred to differently sized
ranges.

Again-I go this newsgroup and get a great & fast answer.

THANKS

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
How can I use a cell reference in Sumproduct array formula? Chrism Excel Discussion (Misc queries) 1 April 7th 05 06:05 PM
sumproduct of part cells of a range with blanks excelFan Excel Discussion (Misc queries) 4 February 25th 05 11:37 PM
changing a range of fields Mr. G. Excel Discussion (Misc queries) 3 January 31st 05 10:21 PM
using sumproduct in a range of text fields? Basil Excel Worksheet Functions 1 December 13th 04 01:19 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 01:25 AM


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