Thread: Add formula if
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Luke M Luke M is offline
external usenet poster
 
Posts: 2,722
Default Add formula if

First, that creates a circular reference (formula is in H2 and references
H2!) Is this intended?

Second, would this formula work?
=IF(ISBLANK(G2),"",H2*G2)

If not, you'd need to use a Workbook_Change event. You could prb modify one
of the previous example someone has posted for you on one of your other
threads.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"puiuluipui" wrote:

Hi, i need a macro to add a formula starting from "H2", but only if in "F"
colum are numbers.
Ex:
F H
12 formula
5 formula
empty no formula

If there are some numbers in "F" column, then to add formula in in "H"
column starting from "H2".
This is the formula: =IF(G2<"",H2*G2,"")
Can this be done?
Thanks!