Forum Discussion
Change the absolute reference into new one whenever copy to new location
=(MAX(A$1:A$5)=A1)*A1
I hope I get help with that if possible
- TwifooApr 24, 2019Silver ContributorThat’s just a sample structure of the formula I suggest you to use. For specifics, you need to attach your sample file. Remember, no one could possibly imagine the structure of your actual data, without a sample file. You need not think twice to believe me!
- chavanpr12Apr 24, 2019Copper Contributor
Twifoo Sorry this is the first time in community so I didn't had an idea about the procedure to solve the method. I have explained my problem in excel file itself. Please do check and help to solve the problem.
Thank you
- TwifooApr 25, 2019Silver Contributor
In the attached file, the formula in B1, copied down rows, is:
=(MAX(INDEX(A$1:A2,
IFERROR(AGGREGATE(14,6,1/(A$1:A1="")*ROW(A$1:A1),1)+1,1)):
INDEX(A1:A10,
MATCH(1,INDEX(--(A1:A10=""),0),0)-1))=A1)*A1Note that the foregoing formula follows a logic similar to that of SergeiBaklan . Nonetheless, it is a non-array formula and assumes that the maximum number of cells to be evaluated at any given instance is 9. If, for example, such maximum is 99, A10 will have to be modified to A100, as follows:
=(MAX(INDEX(A$1:A2,
IFERROR(AGGREGATE(14,6,1/(A$1:A1="")*ROW(A$1:A1),1)+1,1)):
INDEX(A1:A100,
MATCH(1,INDEX(--(A1:A100=""),0),0)-1))=A1)*A1By the way, Sergei's formula assumes such maximum to be 999.