Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Problems with feet an inches

I have imported a column of data from another program that is in feet and
inches (1' 7"). There is a space separating the values. I need to average
this column. It is not that important on the final format. It doesn't have to
be in feet and inches. How can I do this without manually converting each
cell?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Problems with feet an inches

Ken,

If your lengths are in column A, starting in cell A2, then use this formula in another column:

=VALUE(LEFT(A2,FIND("'",A2)-1))+ VALUE(MID(A2,FIND("'",A2)+1,FIND("""",A2)-FIND("'",A2)-1))/12

and copy down to match your list. This will give you decimal feet, which you can then average.

HTH,
Bernie
MS Excel MVP


"Ken" wrote in message
...
I have imported a column of data from another program that is in feet and
inches (1' 7"). There is a space separating the values. I need to average
this column. It is not that important on the final format. It doesn't have to
be in feet and inches. How can I do this without manually converting each
cell?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Problems with feet an inches

Bernie, thanks alot. That worked perfectly. Now I have another problem. In
this same spreadsheet, I have imported 2 other columns of text data. I would
like to use the average formula you gave me with certain conditions. Both
columns contain one of 2 possible results, lets say it is "yes" or "no" for
column 1 and "up" or "down" for column 2. I would like to average the results
of the third column (feet and inches) if the text in column 1 and the text in
column 2 contain "no" and "down" respectively. I have tried using logical
functions but they seem to only work with numbers. Can you help me with this
also?
Ken
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Problems with feet an inches

Ken,

=SUMPRODUCT((A1:A100="no")*(B1:B100="down")*(C1:C1 00))/SUMPRODUCT((A1:A100="no")*(B1:B100="down"))

Or, use a Pivot table set for average - much easier to get your four combinations of values
averaged.

HTH,
Bernie
MS Excel MVP


"Ken" wrote in message
...
Bernie, thanks alot. That worked perfectly. Now I have another problem. In
this same spreadsheet, I have imported 2 other columns of text data. I would
like to use the average formula you gave me with certain conditions. Both
columns contain one of 2 possible results, lets say it is "yes" or "no" for
column 1 and "up" or "down" for column 2. I would like to average the results
of the third column (feet and inches) if the text in column 1 and the text in
column 2 contain "no" and "down" respectively. I have tried using logical
functions but they seem to only work with numbers. Can you help me with this
also?
Ken



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Problems with feet an inches

Bernie, I tried the formula:
=SUMPRODUCT((A1:A100="no")*(B1:B100="down")*(C1:C1 00))/SUMPRODUCT((A1:A100="no")*(B1:B100="down")),
but I get an error message (#Div/0!). I don't know enough yet about pivot
tables to try this method, but I am working on it.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Problems with feet an inches


Bernie, I finally figured out how to do the pivot table. You were right. It
is fairly simple. Thanks for everything.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a formula for inches to feet and inches? Excel Worksheet Functions 2 August 12th 06 12:45 AM
feet and inches steve Excel Worksheet Functions 2 September 26th 05 05:34 PM
Special format for feet - inches in a cell Bothell John Excel Discussion (Misc queries) 1 September 8th 05 12:28 AM
is there a macro that will convert from inches to feet and inches cable guy Excel Discussion (Misc queries) 1 June 20th 05 07:29 PM
Calculating the Area of objects in Feet and Inches Sip8316 Excel Discussion (Misc queries) 7 May 23rd 05 09:19 PM


All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"