how to display cell value in formula

  • Thread starter Thread starter harshu444
  • Start date Start date
H

harshu444

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
 
Try:   =TEXT(A1,"#")&"*"&TEXT(B1,"#")





- 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"
 
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
 
Back
Top