• 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.

Need a formula

Uzzal

Member
I wish If I could get a formula as showed in the excel sheet
When O7 is = C11 the P7 cell will show result of R11
When O7 is = C12 the P7 cell will show result of R12
When O7 is = C13 the P7 cell will show result of R13 & follows
 

Attachments

  • Updated port & shipping rent details for LV panel.xlsx
    14.5 KB · Views: 9
Last edited:
hello-you can use this
Code:
=IF($O$7=$C11,$R$11,IF($O$7=$C12,$R$12,IF($O$7=$C13,$R$13,"")))
 

Attachments

  • 1Updated port & shipping rent details for LV panel.xlsx
    14.6 KB · Views: 6
I think this is best achieved with a lookup (XLOOKUP for up to date versions of Excel and INDEX/MATCH or VLOOKUP for legacy versions).
Code:
= XLOOKUP(O7,C11:C30,R11:R30)
or, better again, , using a Table
Code:
= XLOOKUP(
   reportDate,
   Table1[Date],
Table1[Day wise
Total Port &
shipping line
rent in BDT])
 
Back
Top