Looking to find the average of cells with both letters & numbers **correct forum**

RJ_B

New Member
Joined
Jun 5, 2021
Messages
6
Platform
  1. Windows
I'm trying to find the average number of the maximum speed of 1000+ entries. I'm also trying to find the maximum distance travelled, in a different column, which also contains numbers & letters. Obviously going through 1000 separate cells isn't feasible, and I cannot seem to find the correct formula to do this. I only get errors using base formulas, so require a custom one. How can this be achieved? I'm not sure if this makes sense, but please reply if you require further explanation.
 

Attachments

  • 195793456_4095382520528533_4863951799682936645_n.png
    195793456_4095382520528533_4863951799682936645_n.png
    9.5 KB · Views: 8
  • 195840053_510277590427700_8074915040266768575_n.png
    195840053_510277590427700_8074915040266768575_n.png
    3.8 KB · Views: 8

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
For maximum distance traveled, do you mean the largest value in column A (which shows miles)?

Do you mean this?

One way of two:

Code:
=ArrayFormula(max(1*left(A2:A6,len(A2:A6)-3)))


1622944962567.png
 
Last edited:
Upvote 0
I mean the absolute total of that "C" column in that example. So it would be 1967 for the total of that example
 
Upvote 0
To clarify further, if you look at my examples, you'll see that in the first attachment, there is the number, being the miles travelled, and then the letters, being the format. I have over 1000 lines to go through, and I need to find the total amount travelled. My issue here is that SUM, won't work, as there are letters in the cells also. Going through the 1000+ lines to delete the "mi" in each cell, will take way too long and I'm wondering if there's an equation to allow for both numbers and letters to be taken into the calculation.
 
Upvote 0
Going through the 1000+ lines to delete the "mi" in each cell, will take way too long
You don't need to go through each cell you can use Find/Replace just select the whole column, in the Find box type mi and leave the replace with box blank (make sure that the "match entire cell contents" checkbox isn't checked) and click ok.
 
Upvote 0
Solution
You're welcome (and we all overlook the obvious sometimes)
 
Upvote 0

Forum statistics

Threads
1,223,999
Messages
6,175,887
Members
452,679
Latest member
darryl47nopra

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