ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to display cell value in formula (https://www.excelbanter.com/excel-programming/404440-how-display-cell-value-formula.html)

harshu444

how to display cell value in formula
 
hi guys,
my problem is this, a1 is 5, b1 is 6, c1= a1*b1, how can i
display the cell value as 5*6.
PLZ HELP

WLMPilot

how to display cell value in formula
 
Try: =TEXT(A1,"#")&"*"&TEXT(B1,"#")

"harshu444" wrote:

hi guys,
my problem is this, a1 is 5, b1 is 6, c1= a1*b1, how can i
display the cell value as 5*6.
PLZ HELP


Mike H

how to display cell value in formula
 
Not sure I fully understand but how about this in C1

=A1 &"*"& B1&" = "&A1*B1

Mike

"harshu444" wrote:

hi guys,
my problem is this, a1 is 5, b1 is 6, c1= a1*b1, how can i
display the cell value as 5*6.
PLZ HELP


harshu444

how to display cell value in formula
 
On Jan 17, 7:13*pm, WLMPilot
wrote:
Try: * =TEXT(A1,"#")&"*"&TEXT(B1,"#")



"harshu444" wrote:
hi guys,
* * * * * * my problem is this, a1 is 5, b1 is 6, c1= a1*b1, how can i
displaythecellvalueas 5*6.
PLZ HELP- Hide quoted text -


- Show quoted text -


ya thats one way of doing it but isnt there any other smarter way,
cause my formula is quite big, is there any macro which can be run
which can show me the formula and instead of cell referance it will
show me cell value in that formula like simply "5*6" instead of "a1*b1"

Gary Keramidas[_2_]

how to display cell value in formula
 
if you want to do it with code, you'll have to break your formula down
something like this:

sub test
Range("c1").Formula = "=" & Range("A1").Value & "*" & Range("b1").Value & ""
end sub
--

Gary


"harshu444" wrote in message
...
hi guys,
my problem is this, a1 is 5, b1 is 6, c1= a1*b1, how can i
display the cell value as 5*6.
PLZ HELP




All times are GMT +1. The time now is 12:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com