variable inside an if formula vba help!@ easy fixi

jordanburch

Active Member
Joined
Jun 10, 2016
Messages
440
Office Version
  1. 2016
HI All,

I have the below. It seems like an east fix I just can figure out the syntax. Can anyone help?
Its the variable parts that wrong and I cant figure it out. I keep trying different combinations with the variable inside the formula but can get it right.

Any ideas?

Jordan


Range("h2:h10000").SpecialCells(xlCellTypeVisible).Formula = "=+IF(RC[-6]=""" & Right(ThisWorkbook.Worksheets("Variables").Range("A10").Value, 2) & "/" & Left(ThisWorkbook.Worksheets("Variables").Range("A10").Value, 3) & """ , RC[-1],(RC[-1]*-1))"
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hey Fluff. Any chance you can help here?


im under the gun on this one and keep trying different things and cant seem to figure it out! uggg!!
Any help is greatly appreciated!

Jordan
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,490
Members
448,967
Latest member
visheshkotha

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