Chris, for info., both SUMIF & COUNTIF accept wildcards, however, in this instance you have an issue in so far as the post codes themselves are not mutually exclusive
B* would for ex. include B, BA, BB, BD etc... which is not what you want
Given the above, what I would suggest you do is add a further column to your source sheet which extracts the initial element of the post code:
Bookings!R2
=LEFT(G2,MIN(FIND({1,2,3,4,5,6,7,8,9,0},G2&1234567890)-1))
copied down
or if we assume 1 or 2 alphas only
=LEFT(G2,2-ISNUMBER(0+MID(G2,2,1)))
copied down
Then use exact matches on this column
PostCodes!C4:
=COUNTIF(Bookings!$R:$R,$A4)
copied down
PostCodes!D4:
=SUMIF(Bookings!$R:$R,$A4,Bookings!$M:$M)
copied down
Bookmarks