• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Lookup value in two column

JAMIR

Member
Respected Ninjas & Friends

I have attached sample file. In Vehicle Register there is two column FC Date & New FC Date. In RC Register i want FC Date from Vehicle Register if New FC Date column is Blank it should get FC Date Column Value. And if Both Column [FC Date & New FC Date] having dates it should be get New FC Date.

Regards,


Zameer
 
Respected Ninjas & Friends

I have attached sample file. In Vehicle Register there is two column FC Date & New FC Date. In RC Register i want FC Date from Vehicle Register if New FC Date column is Blank it should get FC Date Column Value. And if Both Column [FC Date & New FC Date] having dates it should be get New FC Date.

Regards,


Zameer
 

Attachments

Dear Jamir,

pls try this one and finish it with CTRL+SHIFT+ENTER

=MAX(VLOOKUP([@[Vehicle No.]],Table1[[Vehicle No.]:[New FC Date]],{3,4},0))
 
Dear Jamir,

pls try this one and finish it with CTRL+SHIFT+ENTER

=MAX(VLOOKUP([@[Vehicle No.]],Table1[[Vehicle No.]:[New FC Date]],{3,4},0))
Hello Naresh,

Thanks for help. Its very useful.

But i think instead of vlookup, index function is more reliable. Coz column reference may be change sometimes. And Index doesn't affect if column changed.

Again thanks for the great support.. Take care. have a great day.


Zameer
 
Or this non-array formula and with error control :

=IFERROR(1/(1/(MAX(VLOOKUP(B2,Table1[[Vehicle No.]:[New FC Date]],{3,4},0)))),"")

or,

=IFERROR(1/(1/(MAX(INDEX(Table1[[FC Date]:[New FC Date]],MATCH(B2,Table1[Vehicle No.],0),)))),"")

Regards
Bosco
 
Or this non-array formula and with error control :

=IFERROR(1/(1/(MAX(VLOOKUP(B2,Table1[[Vehicle No.]:[New FC Date]],{3,4},0)))),"")

or,

=IFERROR(1/(1/(MAX(INDEX(Table1[[FC Date]:[New FC Date]],MATCH(B2,Table1[Vehicle No.],0),)))),"")

Regards
Bosco

Hello Bosco

Thank you very much..

Have great day.

Regards,


Zameer
 
Back
Top