Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
OrdOff
 
Posts: n/a
Default problem with Array Formula


I have experienced a problem with an array formula

I am combining a SUM(IF) formula with an INDIRECT formula due to the
column that is being counted is variable depending on other
conditions.

Here is the Formula as it reads now

{=SUM((IF(INDIRECT(A87&"2:"&RIGHT(A87)&"500")="R1" ,1,0)))}

A87 is the cell that references the sheet and column to read.

Right now the Cell reads
Sheet1!AE

The problem lies in that if there is an "R1" in column Sheet1!F it
counts that one also!

Can anyone help in fixing this error?

Thank you


--
OrdOff
------------------------------------------------------------------------
OrdOff's Profile: http://www.excelforum.com/member.php...o&userid=22708
View this thread: http://www.excelforum.com/showthread...hreadid=383550

  #2   Report Post  
Domenic
 
Posts: n/a
Default


Try...

{=SUM((IF(INDIRECT(A87&"2:"&RIGHT(A87,LEN(A87)-FIND("!",A87))&"500")="R1",1,0)))}

If you enter the names for the sheet and column in two separate cells,
you can use the following formula instead...

{=SUM((IF(INDIRECT("'"&A87&"'!"&B87&"2:"&B87&"500" )="R1",1,0)))}

...where A87 contains the sheet name, such as Sheet1, and B87 contains
the column of interest, such as AE.

Hope this helps!

OrdOff Wrote:
I have experienced a problem with an array formula

I am combining a SUM(IF) formula with an INDIRECT formula due to the
column that is being counted is variable depending on other
conditions.

Here is the Formula as it reads now

{=SUM((IF(INDIRECT(A87&"2:"&RIGHT(A87)&"500")="R1" ,1,0)))}

A87 is the cell that references the sheet and column to read.

Right now the Cell reads
Sheet1!AE

The problem lies in that if there is an "R1" in column Sheet1!F it
counts that one also!

Can anyone help in fixing this error?

Thank you



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=383550

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUM((IF(INDIRECT(A87&"2:"&RIGHT(A87)&"500")="R1", 1,0)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"OrdOff" wrote in
message ...

I have experienced a problem with an array formula

I am combining a SUM(IF) formula with an INDIRECT formula due to the
column that is being counted is variable depending on other
conditions.

Here is the Formula as it reads now

{=SUM((IF(INDIRECT(A87&"2:"&RIGHT(A87)&"500")="R1" ,1,0)))}

A87 is the cell that references the sheet and column to read.

Right now the Cell reads
Sheet1!AE

The problem lies in that if there is an "R1" in column Sheet1!F it
counts that one also!

Can anyone help in fixing this error?

Thank you


--
OrdOff
------------------------------------------------------------------------
OrdOff's Profile:

http://www.excelforum.com/member.php...o&userid=22708
View this thread: http://www.excelforum.com/showthread...hreadid=383550



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
Array formula not working Alex Excel Worksheet Functions 3 June 15th 05 12:28 AM
Formula Problem - If Statement Margie Excel Worksheet Functions 4 April 29th 05 10:07 PM
How to add in an array formula if iisna index match taxmom Excel Worksheet Functions 4 March 15th 05 01:51 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM


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