Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jbo jbo is offline
external usenet poster
 
Posts: 6
Default 2 formulas reference same worksheet, one an array

I have a number of timesheets that I need data from in 2 different ways. I
created one formula on one spreadsheet and another formula on another
spreadsheet to do this. The second formula is an array and the first is not.
However, they both pull data from the same source. I am not sure if this is
the cause of the problem or not, but I can not get both formulas to work at
the same time. The first formula worked perfectly until I set up the second
formula. Once I got the second formula to work by pressing ctrl+shift+enter,
the first formula not longer worked. Any suggestions as to why this would be
and how I can fix it? Here are the formulas in case those help.

first formula:
=IF(Q$2<"",SUMPRODUCT(--(INDIRECT("'"&Q$2&"'!$A$3:$A$50149")=$A$1),--(INDIRECT("'"&Q$2&"'!$C$3:$C$50149")=$A4),--(INDIRECT("'"&Q$2&"'!$D$3:$D$50149")=$B4),--(INDIRECT("'"&Q$2&"'!$E$3:$E$50149")=$C4),--(INDIRECT("'"&Q$2&"'!$F$3:$F$50149")=$D4),(INDIREC T("'"&Q$2&"'!$G$3:$G$50149"))),"")

Second formula: =
=IF(AI$67<"",INDEX(INDIRECT("'"&AI$67&"'!$A$1:$IV $50000"),TIME,MATCH($C71,INDIRECT("'"&AI$67&"'!$A$ 2:$IV$2"),0))+INDEX(INDIRECT("'"&AI$67&"'!$A$1:$IV $50000"),TIME,MATCH($C71+1,INDIRECT("'"&AI$67&"'!$ A$2:$IV$2"),0))+INDEX(INDIRECT("'"&AI$67&"'!$A$1:$ IV$50000"),TIME,MATCH($C71+2,INDIRECT("'"&AI$67&"' !$A$2:$IV$2"),0))+INDEX(INDIRECT("'"&AI$67&"'!$A$1 :$IV$50000"),TIME,MATCH($C71+3,INDIRECT("'"&AI$67& "'!$A$2:$IV$2"),0))+INDEX(INDIRECT("'"&AI$67&"'!$A $1:$IV$50000"),TIME,MATCH($C71+4,INDIRECT("'"&AI$6 7&"'!$A$2:$IV$2"),0))+INDEX(INDIRECT("'"&AI$67&"'! $A$1:$IV$50000"),TIME,MATCH($C71+5,INDIRECT("'"&AI $67&"'!$A$2:$IV$2"),0))+INDEX(INDIRECT("'"&AI$67&" '!$A$1:$IV$50000"),TIME,MATCH($C71+6,INDIRECT("'"& AI$67&"'!$A$2:$IV$2"),0)),"")

with Time equal to the following formula:
=MATCH(1,(INDIRECT("'"&AI67&"'!C1:C50000")=G67)*(I NDIRECT("'"&AI67&"'!E1:E50000")=G1),0)
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
Getting all positions of a value in an array or reference Yossi Excel Discussion (Misc queries) 7 January 2nd 09 09:04 PM
Use one array as a reference for another cqmman Excel Discussion (Misc queries) 0 December 9th 06 08:44 PM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
Array Reference anar_baku Excel Worksheet Functions 3 November 29th 05 07:18 PM
Relative worksheet reference in 3-D formulas? [email protected] Excel Worksheet Functions 13 January 15th 05 03:01 PM


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