Countif or Sumif or Match? Counting exponents that are labels but weird results

montyfern

Board Regular
Joined
Oct 12, 2017
Messages
65
Good Day All!

Close but no cigar? VBA? Pivots? I have a list with labels where I need to count every instance of ^ or exponents that's embedded in individual cells. It will constantly change. I tried the following formulas:
=COUNTIFS(A2:D2,"*^*") =SUMIF(A2:D2,"*^*",$E$2:$E$11)
=MATCH("^",A2:D11,0)-MATCH("^",A2:D11,0)-3 which gives the dreaded N/A error.

<tbody>
</tbody>

For example:
SO
Support
Type of Meeting
Mechanic
Count
Total
Reginald Smith^2
B. Lawford ^
F2F
R13
2
Patricia Jones ^1
P. Redland
Tele.
U19
1
2
Sidney Poitier ^2
P. Newton
F2F
R02
1
2
Elizabeth Taylor ^2
E. Hernandez
Tele.
U19
1
2
Paul Newman ^2
S. DeLorean
Tele.
R13
1
2
Robert Redford
T. Manilow
F2F
U19
Cecily Tyson ^2
J. Johnson
F2F
U19
1
2
Robert Redford
W. Washington
Tele.
R02
Paul Newman ^2
K. Kowalski
F2F
U19 ^
2
2
Barry Jones ^3
S. DeLorean ^
Tele. ^
R13
3
Aggregate Sum
12
12
Then, I have simple sums which both denote 12 as you can see. Thanks so much.

<tbody>
</tbody>
 
You can post the file, after properly anonymizing the data, to a cloud service and post the share link here.

I sent you a private message and you can get back to me.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
After some off-the forums discussion I found I had an error in the carat count formula.

Also, there can be either one entry or two comma separated entries for the mechanism. If two entries are present the points must be summed together. A further complication is that a mechanism code may appear in more than one points list.

To make the lookup lists dynamic, I used three single-column structured tables in columns L, M, and N. The three-point and the five-point table extend beyond what I show here.


Book1
ABCDEFGHIJKLMN
1SROSupportType of MeetingMechanism1stMech2ndMechCaret PtsMechPts1MechPts2SUM() Total Pts1 Point3 Points5 Points
2Alex SmithD. AlighieriF2FB52B52 0101A20Y07B17
3Blair JohnsonJ. Baldwin^Tele.^B17, Y07B17Y0726311A26P51JU88
4Chris Williams ^3J. RobinsonF2F^B17,B17B17B1746616AR2ME210
5Drew BrownH. GodwinesonTele.Y07, B17Y07B170369B17P30
6Emerson JonesM. CurieTele. ^JU88, Y07JU88Y071539B23P38
7Frankie MillerH. de Soto ^F2FAR2AR21102B52P50
NotTable_NoCondFormtng
Cell Formulas
RangeFormula
E2=TRIM(LEFT(SUBSTITUTE(D2, ",", REPT(" ", 20)), 10))
F2=IF(ISNUMBER(SEARCH(",", D2)), TRIM(SUBSTITUTE(D2, E2 & ",", "")), "")
G2=COUNTIF(A2:D2, "*^*") + ISNUMBER(--RIGHT(A2)) * IFERROR(--RIGHT(A2, LEN(A2) - SEARCH("^", A2)) - 1, 0)
H2=ISNUMBER(MATCH(E2, x1Tbl[1 Point], 0)) + 3 * ISNUMBER(MATCH(E2, x3Tbl[3 Points], 0)) + 5 * ISNUMBER(MATCH(E2, x5Tbl[5 Points], 0))
I2=ISNUMBER(MATCH(F2, x1Tbl[1 Point], 0)) + 3 * ISNUMBER(MATCH(F2, x3Tbl[3 Points], 0)) + 5 * ISNUMBER(MATCH(F2, x5Tbl[5 Points], 0))
J2=SUM(G2:I2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,285
Members
449,094
Latest member
GoToLeep

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