Excel formula to lookup the last value in a column and return the value of the adjacent cell

Almie

I have the following formula to return the value of the last value in a column:

=LOOKUP(2,1/(D:D<>""),D:D)

What I need now is to return the value of the cell adjacent to it as well. (It will not necessarily be the last value in that column and the info in Column D could have duplicates.

Almie

Ok, So I have found an answer by playing around with array formulas.

The problem was that this is a stock control sheet where there are changes made at multiple times, each recorded in the next available row. There is always a date (Column E) but not necessarily a Supplier, as it might be stock moving out. When a Supplier delivers, the Supplier name is recorded in Column D. In D1 the last supplier is then shown with the following formula.

=LOOKUP(2,1/(D:D<>""),D:D)

I want to then see what date it was last received. The formula I found that works is as follows (Array Formula):

=INDEX(E:E,MAX(IF(D:D=D1,ROW(D:D)-ROW(INDEX(D:D,1,1))+1)))

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Return value of adjacent cell

From Dev

Return value of adjacent cell

From Dev

Excel lookup / value formula

From Dev

Excel - Inserting cell value in formula column name

From Dev

EXCEL Formula to find a value and return column it is found in

From Dev

Excel: Lookup matching cell in a table and return the value of the first cell in the row

From Dev

Excel formula - If value was found in row return value from next cell

From Dev

Excel formula to get first and last non-empty value in a row and return column header

From Dev

Excel formula to sum all entries in a row if value of adjacent cell is equal to third cell

From Dev

EXCEL Smallest value with specific value in adjacent cell

From Dev

Excel - select a cell based on adjacent cell value

From Dev

Formula to match/lookup if part of a string in a cell is equal to a value in a given range and return this value

From Dev

LOOKUP formula to find last value in VBA

From Dev

Excel formula for column of last negative value in range (no array formulas)

From Dev

Merge or concatenate column by adjacent cell value

From Dev

(Excel) Conditional Formatting based on Adjacent Cell Value

From Dev

Excel - Replace cell link in formula with value in cell

From Dev

Excel Formula to return a Specific Value

From Dev

Return Adjacent Cell Value from Max Value of Duplicates

From Dev

Search a column of text by adjecent cell and return a binary value (excel)

From Dev

Display change in value of a cell in adjacent cell using excel VBA

From Dev

How to find the value of a cell adjacent to the current cell C# + Excel

From Dev

Excel Formula if the value of a cell in one column stays the same but the value in another changes then show me

From Dev

How do I create a formula in excel that searches for a value in row, and then takes the value from another cell in that column?

From Dev

Excel VBA function to lookup value in a Cell range

From Dev

Excel VBA function to lookup value in a Cell range

From Dev

getting last column last cell value

From Dev

getting last column last cell value

From Dev

How to change a formula according to cell value in excel?

Related Related

  1. 1

    Return value of adjacent cell

  2. 2

    Return value of adjacent cell

  3. 3

    Excel lookup / value formula

  4. 4

    Excel - Inserting cell value in formula column name

  5. 5

    EXCEL Formula to find a value and return column it is found in

  6. 6

    Excel: Lookup matching cell in a table and return the value of the first cell in the row

  7. 7

    Excel formula - If value was found in row return value from next cell

  8. 8

    Excel formula to get first and last non-empty value in a row and return column header

  9. 9

    Excel formula to sum all entries in a row if value of adjacent cell is equal to third cell

  10. 10

    EXCEL Smallest value with specific value in adjacent cell

  11. 11

    Excel - select a cell based on adjacent cell value

  12. 12

    Formula to match/lookup if part of a string in a cell is equal to a value in a given range and return this value

  13. 13

    LOOKUP formula to find last value in VBA

  14. 14

    Excel formula for column of last negative value in range (no array formulas)

  15. 15

    Merge or concatenate column by adjacent cell value

  16. 16

    (Excel) Conditional Formatting based on Adjacent Cell Value

  17. 17

    Excel - Replace cell link in formula with value in cell

  18. 18

    Excel Formula to return a Specific Value

  19. 19

    Return Adjacent Cell Value from Max Value of Duplicates

  20. 20

    Search a column of text by adjecent cell and return a binary value (excel)

  21. 21

    Display change in value of a cell in adjacent cell using excel VBA

  22. 22

    How to find the value of a cell adjacent to the current cell C# + Excel

  23. 23

    Excel Formula if the value of a cell in one column stays the same but the value in another changes then show me

  24. 24

    How do I create a formula in excel that searches for a value in row, and then takes the value from another cell in that column?

  25. 25

    Excel VBA function to lookup value in a Cell range

  26. 26

    Excel VBA function to lookup value in a Cell range

  27. 27

    getting last column last cell value

  28. 28

    getting last column last cell value

  29. 29

    How to change a formula according to cell value in excel?

HotTag

Archive