H
hce
Dear All
Can anyone explain to me in details and in simple layman terms on how
this formula =OFFSET('1'!$A$1,0,0,COUNTA('1'!$A:$A),COUNTA('1'!$1:$1))
works?
I asked previously how I can have a dynamic range and one kind soul
provided me with this formula but I have no idea how it works.
For example, I have a worksheet named TOTAL and another worksheet named
APN. The data in APN is extracted from a CSV file and has links with it
so the data will be refreshed everytime I refresh it. The purpose of
TOTAL is for me to copy a column of data (Phone No) from APN to TOTAL.
I will paste this column of data in Column A of TOTAL. And after
pasting, I will insert a IF formula in Column B and apply it to all the
rows because I need to see whether there's any duplicates.
I am using a macro to do this for me but because I have no idea how
many records there will be everytime, I put the range as B:B for the IF
formula so that I don't miss out on any records. However with this
method, it would take a long time for the macro to finish calculating
as it has to calculate 65000+ rows... Hence, if someone can teach me on
how to tell the macro to apply the IF formula only until the last
record in Column A, that would be fantastic. Note that the no of
records in Column A will always change with the refresh ie. it could
have 10 records now but 20 records twenty minutes later.
Cheers
kelvin
Can anyone explain to me in details and in simple layman terms on how
this formula =OFFSET('1'!$A$1,0,0,COUNTA('1'!$A:$A),COUNTA('1'!$1:$1))
works?
I asked previously how I can have a dynamic range and one kind soul
provided me with this formula but I have no idea how it works.
For example, I have a worksheet named TOTAL and another worksheet named
APN. The data in APN is extracted from a CSV file and has links with it
so the data will be refreshed everytime I refresh it. The purpose of
TOTAL is for me to copy a column of data (Phone No) from APN to TOTAL.
I will paste this column of data in Column A of TOTAL. And after
pasting, I will insert a IF formula in Column B and apply it to all the
rows because I need to see whether there's any duplicates.
I am using a macro to do this for me but because I have no idea how
many records there will be everytime, I put the range as B:B for the IF
formula so that I don't miss out on any records. However with this
method, it would take a long time for the macro to finish calculating
as it has to calculate 65000+ rows... Hence, if someone can teach me on
how to tell the macro to apply the IF formula only until the last
record in Column A, that would be fantastic. Note that the no of
records in Column A will always change with the refresh ie. it could
have 10 records now but 20 records twenty minutes later.
Cheers
kelvin