Collecting information

confusa

New Member
Joined
Jul 5, 2016
Messages
8
I have 38 sections identical to this (Below) and I am trying to collect all the m's for a particular month in this case November the 1st. Is this possible as Countif(s), Sumif(s), sumproduct, index and match do not work please advise?

12345678910111213141516171819202122232425262728293031
September
October
November
m
DecemberBHBH
JanuaryBHm
February
MarchmBH
AprilBH
MayBHmBH
June
July
AugustBH

<colgroup><col><col span="26"><col><col span="3"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I know there is a better way to do this, but cant think of it right now. This also works though...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
1​
Level 1Level 2Level 3
2​
TypeMammalBirdFishBugDogCatFresh WaterMarine
3​
MammalDogDomesticFresh WaterInsectDobermanLionTroutShark
4​
BirdCatWildMarineArachnidPoodleTigerMinowBarracuda
5​
FishCowbulldogHousePike
6​
Bugs
A18=COUNTIF(OFFSET($B$3,MATCH($A$17,$A$3:$A$14,0)-1,0,1,38),"m")
 
Upvote 0
I know there is a better way to do this, but cant think of it right now. This also works though...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
1​
Level 1Level 2Level 3
2​
TypeMammalBirdFishBugDogCatFresh WaterMarine
3​
MammalDogDomesticFresh WaterInsectDobermanLionTroutShark
4​
BirdCatWildMarineArachnidPoodleTigerMinowBarracuda
5​
FishCowbulldogHousePike
6​
Bugs

<tbody>
</tbody>

A18=COUNTIF(OFFSET($B$3,MATCH($A$17,$A$3:$A$14,0)-1,0,1,38),"m")

Morning Ford

Thank you for your reply. This shows as volatile and brings back 0.
Regards
Colin
 
Upvote 0
My apologies, I uploaded the wrong sample table. The formula does work though...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
O​
P​
Q​
R​
1​
1​
2​
3​
4​
5​
6​
7​
8​
9​
10​
11​
12​
13​
14​
15​
16​
17​
2​
September
3​
October
4​
Novembermm
5​
December
6​
JanuaryBH
7​
February
8​
March
9​
AprilBH
10​
MayBHm
11​
June
12​
July
13​
August
14​
15​
16​
17​
November
18​
2​
Enter your selected month in A17
A18=COUNTIF(OFFSET($B$3,MATCH($A$17,$A$3:$A$14,0)-1,0,1,38),"m")
You cold also put the "m" in it's own cell and then reference it.
 
Upvote 0
Thank you again for your assistance - I have made this work but it brings back both the November 2nd and 5th entries - I am trying to get it to return one for each day. Is this possible or would I have to find how to do it with VBA?
Regards

Coin
 
Upvote 0
OK I thought you wanted a count for the whole month (I am trying to collect all the m's for a particular month)

can you show some expected answers please?
 
Upvote 0
Not sure if this came through previously - but I am trying to produce a format like the third sheet.

ACL001
12345678910111213141516171819202122232425262728293031 ACL001
September September0ACL001
October October0ACL001
November m November2ACL001
December BHBH December0ACL001
JanuaryBH m January25ACL001
February February0ACL001
March m BH March22ACL001
April BH April0ACL001
May BH m BH May10ACL001
June June0ACL001
July July0ACL001
August BH August0ACL001
AHL001
12345678910111213141516171819202122232425262728293031
September m September9AHL001
October October0AHL001
November m November11AHL001
December BHBH December0AHL001
JanuaryBH January0AHL001
February February0AHL001
March m BH March10AHL001
April BH April0AHL001
May BH m BH May12AHL001
June June0AHL001
July July0AHL001
August BH August0AHL001
0
12345678910111213141516171819202122232425262728293031
September VOL001 EPL001TRL001BOL001BAL001AHL001 IVC001 LGL001 ROL001 CAL001LLL001 IML001
October ANL001 SPL001 BOL001WBL001UPL001 IVL001 HPL001SSL001LGL001
NovemberTRL001ACL001 VOL001 HPC001 AHL001 ROL001 BPK001 CAL001LLL001
DecemberSPL001LGL001 ANL001 WBL001UPL001 TRC001 BAL001HPL001
January EPL001 TRL001 VOL001 LLL001 ACL001SSL001
FebruaryHPC001SPL001LGL001 ANL001 BOL001WBL001UPL001 PCL001 HPL001 CAL001 ROL001 BPK001 TRC001 IVL001
March BAL001AHL001 IVC001 VOL001 ACL001SSL001 LLL001 IML001
April ANL001TRL001HPC001SPL001EPL001 WBL001UPL001 CAL001 HPL001
May IVL001 LGL001 ACL001 AHL001 ROL001 BAL001 TRC001 SSL001
June UPL001 IVC001 BPK001 EPL001

<colgroup><col style="width:48pt" width="64" span="35"> </colgroup><tbody>
</tbody>
 
Upvote 0
OK now you totally lost me, where do those codes come from, your table shows no reference to them (that I can see)
 
Upvote 0
Afternoon Ford

On the far right of each of the 38 blocks (sheet 1 and sheet 2) shows the month day and code, ie January 25 ALC001. The search criteria then looks from last sheet (sheet 3) and references the others thus compiling a list for "m". I would also like to get it to reference others letters (BH) without creating multiples of 38 sheets. Is this possible. I hope I have explained where I would like to be and reduced the confusion.

regards

Colin
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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