Macro Code for formula IF(E2="WORDS", F2,F2*500)

teki

New Member
Joined
Feb 17, 2012
Messages
3
I am trying to write a code that allows me to have in the column L the following formula; IF(E2="WORDS", F2,F2*500). And I want it to go until the end of Column E. I am going crazy with many different ways and none work... please help!!!
Much appreciated!! :)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try like this

Code:
LR = Range("E" & Rows.Count).End(xlUp).Row
Range("L2:L" & LR).Formula = "=IF(E2=""WORDS"", F2,F2*500)"
 
Upvote 0
Thank you SOOOO MUCH!!!!!
I have just started working with Macros... and I did spend all day looking for this... it looks so easy :) and it works! thanks a lot!
 
Upvote 0

Forum statistics

Threads
1,216,106
Messages
6,128,863
Members
449,473
Latest member
soumyahalder4

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top