I have a spreadsheet that has a company name in Column A and a number value in column b.
I want to create a macro that if the company in column A is "Dow" then add 75% to column b.
Thanks in advance
Ryan.
I have a spreadsheet that has a company name in Column A and a number value in column b.
I want to create a macro that if the company in column A is "Dow" then add 75% to column b.
Thanks in advance
Ryan.
Hi,
Try this code:
![]()
Please Login or Register to view this content.
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
Using Evaluate method:
![]()
Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Is there a way to make this NOT case sensative?
Evaluate method isn't as it fires at Worksheet level, VBA unlike Worksheet is Case Sensitive by default.
So re: the iteration, either a) set Module header of: Option Compare Text or b) revise the iteration to:
![]()
Please Login or Register to view this content.
Thanks alot guys.
Sorry guys, I am being asked if they can have it so the formula is in the field instead of just the value.
So if I run this now the feild changes to a value (example 1 would equal 0.75 now).
Can i get it so it shows =Sum(1*0.75) and the value be 0.75 but they can look in the cell and still see the old value easily.
Thanks
I'm confused - I thought you were meant to be adding 75% to the value ? (ie * 1.75)
Using iteration approach with * 0.75:
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks