Im quite new to excel formulas, and I am trying to do something I believe should be very simple. Simplistically put, I have a range $A$8:$A11 that has data, but I only want to have a look at $A$8:A10. But $A10 can grow. If I put a value in cell A12, then the range must change to $A$8:$A11.
I have a formula where I get the row of the last cell in the table - 1(i.e. If there is data in cell A11, it grabs the row number before it, in this case 10):
=(MIN(ROW(FleetNameNumbers))+ROWS(FleetNameNumbers)-1)-1
In this case it is row 10. Again, if I put a value in A12, then this formula will change to row 11.
It is in this formula that I want to dynamically be able to change the range :
=LOOKUP(2,1/(($A8:$A11)=A11),G8:G11)
Ive tried this:
=LOOKUP(2,1/(($A8:$A11-1)=A11),G8:G11)
But I get an #N/A value. So obviously this is not allowed. Ive read about OFFSET, but I have no idea if it can work and do what I want to do ?
I am sure this is a simple thing to do, and if anyone can help, I would GREATLY appreciate it.
Thanks.