Belleke
Well-Known Member
I am looking for a piece of VBA to sum a range if it meets a criteria and populate a userform textbox.
In range F19:F36 are 2 values 6% or 21% (taxrates)
What I want, if the value = 6 % then sum the values in range G19:G36 offset(0,1)
The same for the 21% value.
So that i have 2 sums to populate 2 userform textboxes.
Hope it is clear.
In range F19:F36 are 2 values 6% or 21% (taxrates)
What I want, if the value = 6 % then sum the values in range G19:G36 offset(0,1)
The same for the 21% value.
So that i have 2 sums to populate 2 userform textboxes.
Hope it is clear.