Return Array from Index/Match?

EB08

Active Member
Joined
Jun 9, 2008
Messages
343
I feel like i'm overlooking something, but my goal is this: without the use of a helper column, use either index/match or another lookup function to return an array of values to then be used in sumproduct() or an array sum(). I cant seem to get any of the html makers to work on the office computer, or i would show a quick example directly from the sheet.

This is how i started to create the formula (which does not work) if it helps anyone understand the direction i'm trying to go with this.

Let me know if i need to get more specific. Thanks.

Code:
{=sum(index(B1:B3,match(D1:D3,A1:A3,0))*E1:E3)}
 
Domenic - exactly what i'm after, thanks.

also, thanks everyone for your time and input; i realize i made this one more difficult than it had to be with my poor explanations.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Guys,

I have similar question with EB08 but have a little bit compplicated. Also have tried with Domenic solution but result N/A for me.

I try to get total ammount of the item purchased on certain date

Garbled image removed by Moderator

I have item price list on other table as follows:

Garbled image removed by Moderator

As item price are going changes, i need to sum the total ammount of item purchased based on price working on the purchase date.

For example, on the table there is transaction in 1st Jan and when look into the table, there is price update on 1st Jan, so the ammount will be 1*0,5 + 2*2 = 4,5
On 4 Feb, there is purchase transaction and when look into the tablem there is price update on 2nd Feb, so the ammount will be 2*0,75 + 2*5 = 11,5

Firstly i think i can use sumproduct to get the total ammount, but i stuck on how i can get the correct price for each item.

Any comment would be much appreciated

Thanks!
 
Last edited by a moderator:
Upvote 0
Sorry for set wrongly for the images.

Here is images for data:

<colgroup><col span="3"><col><col><col></colgroup><tbody>
</tbody>
Date
Supplier
Total
Toothbrush
Toothpaste
Towel
01-Jan
XXX
4.5
1
2
01-Jan
YYY
1
1
04-Feb
XXX
11.5
2
2
31-Jan
YYY
1
1

<tbody>
</tbody>


And here is for lookup table:
Item Name
Price
Last Update
Toothbrush
0.5
01-Jan
Toothpaste
1
01-Jan
Towel
2
01-Jan
Toothbrush
0.75
02-Feb
Toothpaste
1.25
02-Feb
Towel
5
02-Feb

<tbody>
</tbody>


<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,221,444
Messages
6,159,914
Members
451,603
Latest member
SWahl

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