Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Formula, not results showing

I have typed the following code and when executed the formula shows in the cell not the number. What do I do?

Public Sub FormulaTest_Click(
Range("E2").Selec
If Range("A1").Value = "Input" Then Range("F2").Formula = "C2 + C3
If Range("A1").Value = "% of Rev" Then Range("F2").Formula = "C2*.5
End Su

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Formula, not results showing

Make sure you include the equals sign in the formula property, just like a regular formula.. "=C2+C3

----- bruce forster wrote: ----

I have typed the following code and when executed the formula shows in the cell not the number. What do I do?

Public Sub FormulaTest_Click(
Range("E2").Selec
If Range("A1").Value = "Input" Then Range("F2").Formula = "C2 + C3
If Range("A1").Value = "% of Rev" Then Range("F2").Formula = "C2*.5
End Su

Thanks.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Formula, not results showing

You need = before the formula otherwise Excel sees it a text.

If Range("A1").Value = "Input" Then Range("F2").Formula = "=C2 + C3"
If Range("A1").Value = "% of Rev" Then Range("F2").Formula = "=C2*.5"

HTH

Ian

--

Remove NG from my address to send direct.
-----

"bruce forster" wrote in message
...
I have typed the following code and when executed the formula shows in the

cell not the number. What do I do??

Public Sub FormulaTest_Click()
Range("E2").Select
If Range("A1").Value = "Input" Then Range("F2").Formula = "C2 + C3"
If Range("A1").Value = "% of Rev" Then Range("F2").Formula = "C2*.5"
End Sub

Thanks.



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
Search formula showing results plus 100 characters Deb Excel Discussion (Misc queries) 2 January 7th 10 09:51 PM
IF formula only showing positive results Davidm Excel Discussion (Misc queries) 2 August 19th 08 05:17 AM
Showing negative values for formula results in red sherden_hershey Excel Discussion (Misc queries) 5 February 15th 08 12:50 AM
Showing Cummulative Top5 results with an array-formula...? Jen[_4_] Excel Worksheet Functions 15 July 2nd 07 04:54 PM
showing multiple results to a formula Robert Brown Excel Worksheet Functions 4 July 19th 06 09:52 PM


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

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

About Us

"It's about Microsoft Excel"