moogthemoog
Board Regular
- Joined
- Nov 17, 2004
- Messages
- 51
Hi
I have a list of names, and I am using a formula to calculate the total of individual names. Extract of spreadsheet is below (sorry, I'm not sure how to format it better in this post)
ColumnA ColumnB
Name1 1
Name2 1
Name2 0
Name2 0
Name3 1
Name3 0
Name4 1
The formula used in Cell B2 is =IF($A2=OFFSET($A2,-1,0),0,1)
I can then sum column B to calculate how many individual names are in the list (i.e. 7 rows of data, but only 4 separate names)
This works fine; however, if I filter the data, the offset won't always work - so, is there a way to use the OFFSET function on visible cells only?
I'd prefer not to use VBA, as many of the users have their security settings set to Macros turned off.
Thanks
Jon
P.S. Is there any way of showing the Excel spreadsheet in these posts? I realise I can use
I have a list of names, and I am using a formula to calculate the total of individual names. Extract of spreadsheet is below (sorry, I'm not sure how to format it better in this post)
ColumnA ColumnB
Name1 1
Name2 1
Name2 0
Name2 0
Name3 1
Name3 0
Name4 1
The formula used in Cell B2 is =IF($A2=OFFSET($A2,-1,0),0,1)
I can then sum column B to calculate how many individual names are in the list (i.e. 7 rows of data, but only 4 separate names)
This works fine; however, if I filter the data, the offset won't always work - so, is there a way to use the OFFSET function on visible cells only?
I'd prefer not to use VBA, as many of the users have their security settings set to Macros turned off.
Thanks
Jon
P.S. Is there any way of showing the Excel spreadsheet in these posts? I realise I can use
Code:
for VBA, but can't see a way to include the spreadsheet almost as a screenshot.