Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sally
 
Posts: n/a
Default school project ..please help

hi everyone I want to write a sub that converts all values of two
consecutive columns(C1:D190) from c degree to f degree.I know the
formula but don't know how to apply it to all cells I'm completely
confused .This is part of my school project and I don't know how to do
it. please help ...

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default school project ..please help

In the column(s) for your F degrees:

=(C1*1.8)+32 assuming C1 is the degrees C

Copy this formula down to row 190.

HTH

"sally" wrote:

hi everyone I want to write a sub that converts all values of two
consecutive columns(C1:D190) from c degree to f degree.I know the
formula but don't know how to apply it to all cells I'm completely
confused .This is part of my school project and I don't know how to do
it. please help ...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sally
 
Posts: n/a
Default school project ..please help

thanks for your reply but, I want to convert the column itself to F
degree and have the F values written in the same column.I have tried
something like the sub below,but it changes the column to a single
value depend on the activecell.what do I have to do?
Public Sub advancedctoof1()
Dim Rng As Range
Dim f As Single
For Each Rng In Range("E1:E22")
f = ((Activecell.Value) / (5 / 9) + 32)
Rng.Formula = f
Next Rng
End Sub

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SVC
 
Posts: n/a
Default school project ..please help

Assuming your first number is in A1, in a blank cell (e.g. b1) type
=A1&"--"&(A1*1.8)+32. Copy down as far as needed. For A1=0, B1 will display
0--32. Modify as needed.

"sally" wrote:

hi everyone I want to write a sub that converts all values of two
consecutive columns(C1:D190) from c degree to f degree.I know the
formula but don't know how to apply it to all cells I'm completely
confused .This is part of my school project and I don't know how to do
it. please help ...


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default school project ..please help


Public Sub advancedctoof1()
Dim Rng As Range
Dim f As Double
For Each Rng In Range("E1:E22")
f = (Rng.Value * 1.8) + 32
Rng.Value = f
Next Rng
End Sub

"sally" wrote:

thanks for your reply but, I want to convert the column itself to F
degree and have the F values written in the same column.I have tried
something like the sub below,but it changes the column to a single
value depend on the activecell.what do I have to do?
Public Sub advancedctoof1()
Dim Rng As Range
Dim f As Single
For Each Rng In Range("E1:E22")
f = ((Activecell.Value) / (5 / 9) + 32)
Rng.Formula = f
Next Rng
End Sub




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sally
 
Posts: n/a
Default school project ..please help

Thank you very very much for your help

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default school project ..please help

No problem ..good luck with the project!

"sally" wrote:

Thank you very very much for your help


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
school project ..please help sally Excel Worksheet Functions 2 April 19th 06 07:48 PM
How to convert MS Project to MS Excel. I don't have MS Project. Jane Excel Discussion (Misc queries) 1 February 20th 06 10:01 PM
Cannot save Project file as MS Access file Jumpinjackflash Excel Discussion (Misc queries) 1 January 11th 06 11:35 PM
Missing library when running 98 project on 2003 Mary Omond Excel Discussion (Misc queries) 0 May 2nd 05 01:36 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 05:05 AM.

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"