Excel Formula Help

Houstonking

New Member
Joined
Jul 12, 2016
Messages
41
Hello please need help - i have 2 tables -
NameAmountPeriod1Period2Period3Period4
John$ 350.00Q2-24Q3-24Q4-24

and second table

NameQ2-24Q3-24Q4-24
John

How do i get the amount of 350 in relevant period buckets
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
your data should be stored like:
NameAmountPeriod
John
$350.00​
Q2-24
John
$200.00​
Q3-24
John
$100.00​
Q4-24

then you can make a crosstab to get your result.
 
Upvote 0
I agree with the suggestion made by @ranman256 ...there are better ways to organize your source table that would make this task much easier. If you cannot do that, here is one option that uses a formula-based approach:
Book1
ABCDEFGHIJKLMN
1NameAmountPeriod1Period2Period3Period4NameQ2-24Q3-24Q4-24Q1-25Q2-25Q3-25
2John350Q2-24Q3-24Q4-24John350350350000
3Mary400Q3-24Q4-24Q1-25Q2-25Sue450450450000
4John200Q2-24Q3-24Q4-24Marc022522522500
5Sue450Q2-24Q3-24Q4-24
6Marc225Q1-25Q3-24Q4-24
Sheet1
Cell Formulas
RangeFormula
I2:N4I2=INDEX($B$2:$B$6*MMULT(--($C$2:$F$6=I$1),TRANSPOSE(COLUMN($C$1:$F$1)^0)),MATCH($H2,$A$2:$A$6,0))

Please update your profile to show which version of Excel you are using. Note that using the MATCH function like this will only consider the first row where the names match. I don't know if that is okay, or if you might have instances where multiple rows match the name.
 
Upvote 0

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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