Index Match QTD?

amc1528

New Member
Joined
Aug 28, 2015
Messages
18
Hello. I am trying to see if it's possible to create a formula that can do a QTD (quarter to date) or YTD (dynamic range) formula with index, match, match. I have index match match which gives me a single month's data, and I have a QTD index match formula, which can give me the qtd data through a specific month, but not a specific account. Is it possible to have both? I'm hoping that it's a simple thing for someone out there. Thanks!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
It probably could but .....
we're not mindreaders, so make it as easy as you can for us to help you.

  • State your question clearly, including your entire need at the start.
  • Add some representative sample data - actual data is much better than an image (see also "Posting Aids" below).
  • Tell us what formula you have currently, and why your results are not what you want.
  • Include which version of Excel and Operating System you are using.
  • Before posting, read your question back to yourself to check it will make sense to somebody unfamiliar with your worksheet.
 
Upvote 0
I'm having an issue being able to upload files to include sample data which is why there is none, anyone no why that might be? I have no option to upload an excel, word, or anything excel a URL.

I will try my best to describe the situation. I have a sample set of data;
cell A1 is blank, the rest of row 1 is the months Jan, feb, mar, etc...
column a is the account names
row 2 net sales
row 3 cogs
row 4 imu
row 4 igm

I have a formula that can do QTD (quarter to date) which is SUM($B2:INDEX($B2:$M2,MATCH($C$13,$B$1:$M$1,0)))-IF(MATCH($C$13,$B$1:$M$1,0)<4,0,SUM($B2:INDEX($B2:$M2,INT(MATCH($C$13,$B$1:$M$1,0)/3)*3-(MOD(MATCH($C$13,$B$1:$M$1,0),3)=0)*3)))

OR I have a formula that can do index match match INDEX(B$2:$M$5,MATCH($B16,$A$2:$A$5,0),MATCH($C$13,$B$1:$M$1,0))

I would like to have the index match match functionality so that it looks up both the month and the account, but also calculates the QTD (or YTD really) amount.
 
Upvote 0
JanFebMarAprMayJunJulAugSepOctNovDecFY
Net Sales1,0001,0002,5001,0001,0002,5001,0001,0002,5001,0001,0002,50018,000
COGS2502503002502503002502503002502503003,200
Gross IMU7507502,2007507502,2007507502,2007507502,20014,800
IGM7957952,2457957952,2457957952,2457957952,24515,340

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
QTDSingle MonthIf AprilIf May
in millionsw/o account lookupIndex MatchShould beShould be
Net Sales $1,000 $1,000 $1,000 $2,000
COGS $250 $250 $250 $500
COGS $750 $250 $250 $500

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi,

This is with index - match formula.

JanFebMarAprMayJunJulAugSepOctNovDecFY
Net Sales10001000250010001000250010001000250010001000250018000
COGS2502503002502503002502503002502503003200
Gross IMU750750220075075022007507502200750750220014800
IGM795795224579579522457957952245795795224515340
QTDMarAprMay
in millionsw/o account lookupIndex MatchShould beShould be
Net Sales1000250010001000
COGS250300250250
IGM7502245795795

<colgroup><col><col><col><col><col><col span="9"></colgroup><tbody>
</tbody>


This is formula used..
Code:
[TABLE="width: 1634"]
<colgroup><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]QTD[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[TD]May[/TD]
[/TR]
[TR]
[TD]in millions[/TD]
[TD]w/o account lookup[/TD]
[TD]Index Match[/TD]
[TD]Should be[/TD]
[TD]Should be[/TD]
[/TR]
[TR]
[TD]Net Sales[/TD]
[TD]1000[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A11,$A$3:$A$6,0),MATCH(C$9,$B$2:$M$2,0))[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A11,$A$3:$A$6,0),MATCH(D$9,$B$2:$M$2,0))[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A11,$A$3:$A$6,0),MATCH(E$9,$B$2:$M$2,0))[/TD]
[/TR]
[TR]
[TD]COGS[/TD]
[TD]250[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A12,$A$3:$A$6,0),MATCH(C$9,$B$2:$M$2,0))[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A12,$A$3:$A$6,0),MATCH(D$9,$B$2:$M$2,0))[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A12,$A$3:$A$6,0),MATCH(E$9,$B$2:$M$2,0))[/TD]
[/TR]
[TR]
[TD]IGM[/TD]
[TD]750[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A13,$A$3:$A$6,0),MATCH(C$9,$B$2:$M$2,0))[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A13,$A$3:$A$6,0),MATCH(D$9,$B$2:$M$2,0))[/TD]
[TD]=INDEX($B$3:$M$6,MATCH($A13,$A$3:$A$6,0),MATCH(E$9,$B$2:$M$2,0))[/TD]
[/TR]
</tbody>[/TABLE]


1st March formula..
=INDEX($B$3:$M$6,MATCH($A11,$A$3:$A$6,0),MATCH(C$9,$B$2:$M$2,0))

B3 to M6 is,
100010002500100010002500100010002500100010002500
250250300250250300250250300250250300
7507502200750750220075075022007507502200
7957952245795795224579579522457957952245

<colgroup><col><col><col><col><col span="8"></colgroup><tbody>
</tbody>

A11 is,
Net Sales
COGS
IGM

<colgroup><col></colgroup><tbody>
</tbody>

A3 to A6 is,
Net Sales
COGS
Gross IMU
IGM

<colgroup><col></colgroup><tbody>
</tbody>


c9 is,
QTDMarAprMay
in millionsw/o account lookupIndex MatchShould beShould be
Net Sales1000250010001000
COGS250300250250
IGM7502245795795

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

b2 to m2 is,
JanFebMarAprMayJunJulAugSepOctNovDec

<tbody>
</tbody>
 
Upvote 0
Thanks vbabginer. I know how to do the index match. What I am looking for is for the QTD formula to be able to look at both the month and the account. Is that possible? I can do an index match, which will return the specific account for a specific month, or I can do a QTD formula which will do the qtd amount through a specific month but irrespective of the account that I have put in, it will merely go on the row that it is tied to, it isn't intelligent enough to look for the account, that is the piece that i am looking for.
 
Upvote 0
that will not work easily with the QTD portion without other variables. I can do it with adding in another row of numbers to correlate with the month number, then putting in an if then statement for less than or greater than for the month. The QTD formula that I am using does not need that. That is what I was asking about to see if that was somehow adaptable to also look up the account in addition to the month
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,654
Members
449,113
Latest member
Hochanz

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