Help with obtaining multiple results using an array formula

Mickey Juice

New Member
Joined
Jan 31, 2005
Messages
1
Hey Everyone,
I'm just chasing some help as i'm an excel n008. :rolleyes:


I'm running exl2002 on win XP and i'm trying to get multiple results from a data sheet using an array formula.

Basically I want to enter a code and get the coresponding figures so I can add them all up.
eg I want to get the total amount of damage for items with the code 1a (forklift damage).

I've attemped to use a Hlookup array, but it only returns the first value (correctly) then the 2nd value will be 0 and then nothing
:(
Here's the table with the data (on sheet called "Data")
Reel_Damage 2005.xls
ABCDEFGHIJKLMNO
14Week EndingWeek Ending
151Months of November & DecemberDamage caused by:(code)1a1a1a1b2a1a3a4a1a
16Amount of Damage(Kg's)33.027.615.016.011.040.021.014.08.0
172January 101/01/2005Damage caused by:(code)
18Amount of Damage(Kg's)
193January 808/01/2005Damage caused by:(code)
20Amount of Damage(Kg's)
214January 1515/01/2005Damage caused by:(code)
22Amount of Damage(Kg's)
Data



Here's my attempt at the solution, just having one column for now (sheet called arrays)
Reel_Damage 2005.xls
ABCD
11a
233.00
30.00
4#N/A
5#N/A
6#N/A
7#N/A
8#N/A
9#N/A
10#N/A
11#N/A
12#N/A
13#N/A
14#N/A
Arrays


Also:
Is it possible to get multiple results and have them added together all the same formula? rather than adding them all together once I get the result.

Another problem I have is I want to be able to enter a figure and get the results for that corresponding week eg week ending January 8. This is because the figures will be charted on a weekly basis...

Any ideas or solutions will be greatly appreciated!
:pray:
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi

For the first part, how about using the Sumif formula. In A2 of the sheet arrays enter the formula
=SUMIF(Data!G15:O16,Arrays!A1,Data!G16:O16)
with adjustments to the range to suit.

Tony
 
Upvote 0
Hi

For the second part, put the date 1/1/05 in cell A4 of sheet Arrays. In B4 enter the formula
=SUMIF(OFFSET(Data!$G$1,MATCH($A4,Data!$D:$D,0)-1,0):OFFSET(Data!$O$1,MATCH($A4,Data!$D:$D,0)-1,0),$A$1,OFFSET(Data!$G$1,MATCH($A4,Data!$D:$D,0),0):OFFSET(Data!$O$1,MATCH($A4,Data!$D:$D,0),0))

Fill the dates down in column A and copy the formula in B4 down as required. It also needs A1 to contain the code.

HTH

Tony
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top