Formula to count specific text and value within a single cell?

pure vito

Board Regular
Joined
Oct 7, 2021
Messages
180
Office Version
  1. 365
Platform
  1. Windows
Hi All,

The formula would be in G10 and the range would be N10:NN10, If possible I would like the formula to count the specific text LT but to then count the value within the same cell also, for example "LT 10" would = 10 in G10, after searching google I've not come across an instance or answer for this I'm hoping someone might be able to help me out here thanks in advance.
 

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.
Sorry I hope this clears the question, the formula wouldn't count the LT it would I guess be a COUNTIF LT is in the cell but then count the value "LT 10"
 
Upvote 0
1666596230321.png
 
Upvote 0
Hi, you can try this.

Book1
GHIJKLMNOPQ
1015.5LT 10.5LT 5
Sheet1
Cell Formulas
RangeFormula
G10G10=SUMPRODUCT((LEFT(N10:NN10,2)="LT")*("0"&TRIM(MID(N10:NN10,3,13))))
 
Upvote 0
Solution
Once agian FormR you have come to the rescue and it works perfectly thank you so much for taking the time.
 
Upvote 0

Forum statistics

Threads
1,213,549
Messages
6,114,261
Members
448,558
Latest member
aivin

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