how to display cell value in formula

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
 
H

harshu444

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"
 
G

Gary Keramidas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top