AverageIf with Vlookup and Concatenate

DoggoMan

New Member
Joined
Dec 13, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey guys,

I am dealing with 10'000 plus lines and need to get a rolling 12 month average for items on another sheet, however I cannot interact with sheet2 due to the data overwrighting previous data daily. I am trying to make another sheet so it looks pretty.
With the averages I am trying to use the month, item and company to lookup using the pre made CAT that comes with the report sheet, however I cannot get the averages with AVERAGEIF since there are some items that are the same or similar and don't seem to work with what I am trying to do.

I have tried =AVERAGE(IF(ISNUMBER(MATCH(C:C,IF('Monthly Sale Averages cat'!E:E=C4,'Monthly Sale Averages cat'!G:G),0)),'Monthly Sale Averages cat'!G:G))
and
=AVERAGEIFS('Monthly Sale Averages cat'!G:G,'Monthly Sale Averages cat'!E:E,(CONCATENATE(D5,A7,B7))),0)
and
=AVERAGEIFS(INDEX('Monthly Sale Averages cat'!E:G,0,MATCH(CONCATENATE(C$2,A3256,B3256),'Monthly Sale Averages cat'!E3254:G3254,0)),'Monthly Sale Averages cat'!E:E=CONCATENATE($C$2,A3259,B3259))


but it doesn't appear to work.

any help appreciated!


2.PNG
1.PNG
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi DoggoMan,

Would wildcards work for you?

DoggoMan.xlsx
ABCDEFGHIJKL
1
2CatHashesSalesBusinessItem NumberJanuaryFebruaryMarchAprilMay
3December Heyworks1025L999Heyworks1025L6    
4January Heyworks1025L4Heyworks2000L7    
5January Silver Suplys1025L5Talkworld1025L2.52474111 
6January Heyworks1025L8Silver Suplys1025L5    
7January Heyworks2000L7     
8January Talkworld1025L2     
9January Talkworld1025L3     
10February Talkworld1025L2
11February Talkworld1025L33
12February Talkworld1025L37
13February Talkworld2000L37
14March Talkworld1025L74
15April Talkworld1025L111
Sheet1
Cell Formulas
RangeFormula
I2:L2I2=EOMONTH(H2,0)+1
H3:L9H3=IF($F3="","",IFERROR(AVERAGEIFS($C$3:$C$22,$A$3:$A$22,"*"&$F3&"*",$A$3:$A$22,"*"&$G3,$A$3:$A$22,TEXT(H$2,"mmmm")&"*"),""))
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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