Exact match a specific word to a list (Column A) & sum consecutive numbers (in column B)

kiani05

New Member
Joined
Aug 20, 2022
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hi all, Hope everything is good.
Will appreciate your help.

I am trying for
Exact match a specific word to a list (Column A) & sum consecutive numbers (in column B).
I've tried to do it with =SUM(IF(ISNUMBER(SEARCH(D2,$A$2:$A$6)),$B$2:$B$6))
But it doesn't work, as it doesn't exact match word to word

There is a way around by using space at the end of each word in each cell
But that is not what can adopt for the sake of complete project.



1665386065753.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try
Excel Formula:
=SUMIF($A$2:$A$5,$D2&"*",$B$2:$B$5)
in E2 and pull down
 
Upvote 0
Book1
ABCDE
1KeyWVolRootsB Vol
2gardening10gardening80
3garden tools20garden70
4gardening tool set30tool80
5gardening tools40tools60
6garden tool 50
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=SUMPRODUCT(IF(ISNUMBER(SEARCH(" "&D2&" "," "&$A$2:$A$6&" ")),1,""),$B$2:$B$6)
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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