View Full Version : help to fill the table
Please help on the attched file' i need to fill the small table on the right with formula
Kindly note that the formula should search the table for the zone name and column header.
Please note also that the location of the cell is changing.
So i need a formula that works regardless of the location of thr cells
Leith Ross
06-20-2016, 12:37 PM
Hello reda,
Formulas do not work well with merged cells. To work around the problem, I have used column "F" as a helper column. This is also a dynamic named range "Zones". Columns "D" and "E" are also dynamic named ranges: ACHVD_TODATE and TARGET, respectively. You can hide column "F" if you want to.
Here are the formulas for the total table in "G8:K10". The attached workbook has all the changes made.
H9 =SUMPRODUCT(ACHVD_TODATE,--(Zones=H$8))
I9 =SUMPRODUCT(ACHVD_TODATE,--(Zones=I$8))
J9 =SUMPRODUCT(ACHVD_TODATE,--(Zones=J$8))
K9 =SUMPRODUCT(ACHVD_TODATE,--(Zones=K$8))
H10 ==SUMPRODUCT(TARGET,--(Zones=H$8))
I10 =SUMPRODUCT(TARGET,--(Zones=I$8))
J10 =SUMPRODUCT(TARGET,--(Zones=J$8))
K10 =SUMPRODUCT(Target,--(Zones=K$8))
Thank you
But how you made the dynamic ranges
mdmackillop
06-21-2016, 09:42 AM
But how you made the dynamic ranges
Look in Formulas/Name Manager for the formulae
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.