Hello everyone,
My name is Maico and I need some help with my thesis and I cannot seem to make it work.
I am working on a problem with cells and columns.
It can be that I have a column with concatenated cells as follows:
4
4-8
4-8-3
2-4-8-3
1-4-8-3-5
-
-
-
9
9-6
7-9-6
-
The column next to the above one gives certain numbers for capacity, for example
100
200
300
400
500
-
-
50
150
250
-
I want to give an number as input and receive back from the formula the complete cell next to the one that corresponds with the latest occurence of the input in the cell.
This means that, if the input is 6, my output would be the value of the cell next to 7-9-6, the one with the capacity, since this is the last occurence of a 6. If my input is 4, I want my output to be the value of the cell next to the one with 1-4-8-3-5.
The formula should work for any number as input, since it is coming from a generated column and is random of length. Also, the number of empty rows (with -) differs, sometimes 1, sometimes 2 but it can also be 100.
This means that the column can be
4
6
5
but the column is most likely really long, maybe like 1000, or more
I want my output then to be
500
250
500
because these are the corresponding contents in the column next to the one with
1-4-8-3-5
7-9-6
1-4-8-3-5
becuaes these are the latest occurences of the numbers 4, 6 and 5.
I have been trying to use the index function and more things but I just cannot seem to make it work.
All the help is appreciated
Cheers,
Maico
Bookmarks