ItalianPlatinum
Well-known Member
- Joined
- Mar 23, 2017
- Messages
- 880
- Office Version
- 365
- 2019
- Platform
- Windows
Looking for the best way to accomplish this. Is someone able to assist?
I only want to apply formulas if the data is greater than 2 (with header). So if it is then one formula if a range is defined or another formula if it isnt. seems simple but I can't seem to master it. If range is less than 2 then no formulas to be applied (just skip over them).
if there is data for the formula then apply said formulas
apply this formula if BulkList = ""
but apply this formula if Bulklist <> ""
I only want to apply formulas if the data is greater than 2 (with header). So if it is then one formula if a range is defined or another formula if it isnt. seems simple but I can't seem to master it. If range is less than 2 then no formulas to be applied (just skip over them).
if there is data for the formula then apply said formulas
VBA Code:
If WsALL.Range("A" & rows.count).End(xlUp).row > 2 Then
apply this formula if BulkList = ""
VBA Code:
.Range("B2:B" & lr3).Formula2 = "=IFERROR(COUNTIF(ALL!$D$2:$D$" & lr2 & ",A2),0)"
but apply this formula if Bulklist <> ""
VBA Code:
.Range("B2:B" & lr3).Formula2 = "=0"