total number count

ttowncorp

Board Regular
Joined
Feb 2, 2015
Messages
187
Office Version
  1. 365
Platform
  1. Windows
how do i get a accurate count of a number that repeats in a cell that has text in it as well. for example below

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]data[/TD]
[TD]pizza#[/TD]
[TD]apple#[/TD]
[TD]oranges#[/TD]
[TD]grapes#[/TD]
[/TR]
[TR]
[TD]1234 pizza and wine[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3939 apple[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2345 oranges[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234 pizza and pie[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234 pizza and berries[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1234 pizza[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3939 apples[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
How about


Excel 2013/2016
ABCDE
1datapizzaappleorangesgrapes
21234 pizza and wine4210
33939 apple
42345 oranges
51234 pizza and pie
61234 pizza and berries
71234 pizza
83939 apples
Report
Cell Formulas
RangeFormula
B2=COUNTIF($A$2:$A$8,"*"&B1&"*")
 
Upvote 0
thanks this is working. what i didn't know is my sheet has some numbers with no text in it, so the wild cards "*" are not counting those. how do i get around that?
 
Upvote 0
If there is no text, how do you know what to count?
 
Upvote 0
im scanning a lot of receipts and some words are fadded and some numbers are fadded. so even though i know what the number and words are im trying to add the these up without having to do this manually
 
Upvote 0
You may know what the faded letters & numbers are & what they mean, but Xl doesn't have a clue.
Why not just retype the faded stuff
 
Upvote 0
Counting number with text

is there a way to count a specific number in a cell even if it has text in the cell or not? i tried the wild card like example =COUNTIF($A$2:$A$8,"*"&B1&"*") but this way it's only counting the cells with text and not counting up the ones with just the number in the cell.
 
Upvote 0
Re: Counting number with text

Please provide some examples of what your data looks like, and what you are trying to count.
 
Upvote 0
Re: Counting number with text

try

=COUNTIF($A$2:$A$8,"*"&B1&"*")+COUNTIF($A$2:$A$8,B1)
 
Last edited:
Upvote 0
Re: Counting number with text

this works thanks, it's just giving me a green tab error but the code seems to be working, it says the formula in this cell differs from the formulas in this area of the spreadsheet. not sure what that means.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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