Hello Guys,
I got probably a simple problem but I am unable to understand why I can't get my solution to work.
Here's the thing that works.
{=SUM(IF(Query1_results!F19273:F26982="US", Query1_results!G19273:G26982, FALSE))}
This results in getting the answer what I expect.
However, the row numbers and the sheet tab are hard coded in the above formula. If I use the formulas that determine the sheet tab and the column and row numbers then the formula is complicated and it doesn't work either. The answer I get is #Value!. Please tell me what I am doing wrong.
{=SUM(IF(INDIRECT(STab&"!"&Region_Col_Que1&Start_Row_2011_Que1&":"&Region_Col_Que1&End_Row_2011_Que1)=US, INDIRECT(STab&"!"&Unit_Col_Act_Que1&Start_Row_2011_Que1&":"&Unit_Col_Act_Que1&End_Row_2011_Que1), FALSE))}
STab is the name defined to give me Query1_results.
Region_Col_Que1 is defined to give me F.
Start_Row_2011_Que1 is defined to give me 19273.
End_Row_2011_Que1 is defined to give me 26982.
Unit_Col_Act_Que1 is defined to give me G.
Thanks,
Hupaxe
I got probably a simple problem but I am unable to understand why I can't get my solution to work.
Here's the thing that works.
{=SUM(IF(Query1_results!F19273:F26982="US", Query1_results!G19273:G26982, FALSE))}
This results in getting the answer what I expect.
However, the row numbers and the sheet tab are hard coded in the above formula. If I use the formulas that determine the sheet tab and the column and row numbers then the formula is complicated and it doesn't work either. The answer I get is #Value!. Please tell me what I am doing wrong.
{=SUM(IF(INDIRECT(STab&"!"&Region_Col_Que1&Start_Row_2011_Que1&":"&Region_Col_Que1&End_Row_2011_Que1)=US, INDIRECT(STab&"!"&Unit_Col_Act_Que1&Start_Row_2011_Que1&":"&Unit_Col_Act_Que1&End_Row_2011_Que1), FALSE))}
STab is the name defined to give me Query1_results.
Region_Col_Que1 is defined to give me F.
Start_Row_2011_Que1 is defined to give me 19273.
End_Row_2011_Que1 is defined to give me 26982.
Unit_Col_Act_Que1 is defined to give me G.
Thanks,
Hupaxe