Sumproduct with blanks or rows with numbers

FryGirl

Well-known Member
Joined
Nov 11, 2008
Messages
1,368
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
How can I modify this formula to not return value due to the cells with the number? Rows 8 and row 9 are causing the error.

Book1
ABCD
1Header
2131 All (xx) AT H131 All (xx) AT H#VALUE!
3131 All (xx) HH D
4131 All (xx) AT H
5131 All (xx) DD
6131 All (xx) AT H
7131 All (xx) LM
81
91
10159 All (jj)
11159 All (jj)
12159 All (jj)
13159 All (jj)
14159 All (jj)
15159 All (jj)
16159 All (jj)
17159 All (jj)
18131 All (xx) LM
Sheet1 (4)
Cell Formulas
RangeFormula
D2D2=SUMPRODUCT(--(LEFT(A2:A18,FIND(")",A2:A18))=LEFT(C2,FIND(")",C2))))
 
Thanks Fluff. I can work with the Countifs, but the Sumproduct was still returning just a 1
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
They both return 7 for me
Fluff.xlsm
ABCD
1Header
2131 All (xx) AT H131 All (xx) AT H7
3131 All (xx) HH D7
4131 All (xx) AT H
5131 All (xx) DD
6131 All (xx) AT H
7131 All (xx) LM
81
91
10159 All (jj)
11159 All (jj)
12159 All (jj)
13159 All (jj)
14159 All (jj)
15159 All (jj)
16159 All (jj)
17159 All (jj)
18131 All (xx) LM
19
Update
Cell Formulas
RangeFormula
D2D2=SUMPRODUCT(--(IFERROR(LEFT(A2:A18,FIND(")",A2:A18)),0)=LEFT(C2,FIND(")",C2))))
D3D3=COUNTIFS(A2:A18,LEFT(C2,FIND(")",C2))&"*")
 
Upvote 0
Solution
Not sure I understand why, but it still only returns 1

Book1
ABCD
1Header
2131 All (xx) AT H131 All (xx) AT H1
3131 All (xx) HH D7
4131 All (xx) AT H
5131 All (xx) DD
6131 All (xx) AT H
7131 All (xx) LM
81
91
10159 All (jj)
11159 All (jj)
12159 All (jj)
13159 All (jj)
14159 All (jj)
15159 All (jj)
16159 All (jj)
17159 All (jj)
18131 All (xx) LM
Sheet2
Cell Formulas
RangeFormula
D2D2=SUMPRODUCT(--(IFERROR(LEFT(A2:A18,FIND(")",A2:A18)),0)=LEFT(C2,FIND(")",C2))))
D3D3=COUNTIFS(A2:A18,LEFT(C2,FIND(")",C2))&"*")
 
Upvote 0
Not sure why it doesn't work for you, unless it's something to do with your version of xl.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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