Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-08-2016, 02:17 AM
Michael Labuschagne Michael Labuschagne is offline average formal if cell contains number and text Mac OS X average formal if cell contains number and text Office for Mac 2011
Novice
average formal if cell contains number and text
 
Join Date: Dec 2016
Posts: 1
Michael Labuschagne is on a distinguished road
Default average formal if cell contains number and text

A large quantity of data has been captured with units of measurement included in same cell as values. e.g. 65 kg or 1.2 metres



I have tried =AVERAGE(VALUE(LEFT(A13:A66,)))

But get a #VALUE error.

Please can someone explain how to property use the VALUE and LEFT functions or provide the correct formula.
Reply With Quote
  #2  
Old 12-08-2016, 03:56 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline average formal if cell contains number and text Windows 7 64bit average formal if cell contains number and text Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Something like =(SUMPRODUCT(--LEFT(A1:A2,FIND(" ",A1:A2))))/COUNTA(A1:A2)

( adapt range as needed)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-08-2016, 06:35 AM
xor xor is offline average formal if cell contains number and text Windows 10 average formal if cell contains number and text Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Can't get that SUMPRODUCT formula to work Pecoflyer.

If helper cells are acceptable I would put in B13 the formula:

LOOKUP(9^9,--LEFT(A13,ROW($1:$100))) and copy down to B66 and then use =AVERAGE(B13:B66).

If helper cells are not acceptable the following array formula seems to work:

=AVERAGE(IF(ISNUMBER(--MID($A$13:$A$66,1,FIND(" ",$A$13:$A$66)-1)),--MID($A$13:$A$66,1,FIND(" ",$A$13:$A$66)-1)))


Edit: My apologi to Pecoflyer. SUMPRODUCT formula does work if no empty cells, otherwise it doesn't.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
average formal if cell contains number and text looking to change cell color by typing number into the cell ibs Word Tables 1 11-22-2016 06:31 PM
average formal if cell contains number and text Formula, Compare two cell's text and based on results output a number Offrddrver Excel 4 03-23-2016 11:32 PM
Data validation,force cell to be filed with number if respective cell is not empty nicholes Excel Programming 0 08-01-2015 09:08 AM
average formal if cell contains number and text Entering a number in a cell causes it to fill with the color of a nearby cell Bill Martz Excel 1 04-23-2015 07:57 PM
average formal if cell contains number and text Cannot Convert Text Cell to number format to be able to sort the data jyfuller Excel 10 06-19-2013 05:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft