Hello!
Background: (read or just go to the actual question below ) I have a macro that will add a new row below another row, and fill the first cell of that row with a value that equals the value of the cell above + 1. Example:
Payment No. 1 in the amount of ... on ...
Payment No. 2 in the amount of ... on ...
I do this successfully via command button calling following macro
Unfortunately, the same worksheet needs to have another payment schedule, where new - consecutively numbered payments - shall be inserted exactly as above. So the CountIf function is now useless because the word "Payment No." will appear on different locations, namely in different payment schedules. The Worksheet is very dynamic (rows will be inserted/deleted depending on various user-choices), so I cannot further specify the range in which CountIf shall count.
Question: Can I use the name of the NAMED RANGE as the argument in the CountIf function?
Like this
Because while the readable text shall always be "Payment No. " I can of course name the range differently depending on which payment schedule the payment is in.
Thanks in advance for looking into this!
Bookmarks