Home > Back-end >  Excel - Best Way To Perform Lookup In This Case?
Excel - Best Way To Perform Lookup In This Case?

Time:05-01

I have a dataset (See attached)

enter image description here

However, I would like the Date Posted In Transpose Format, So I used transpose and pasted into another sheet. (See attached) But how do I populate the data for FB and TWTR respectively?

enter image description here

CodePudding user response:

Pivot: Excel Formula

enter image description here

Sum

  • If you want to sum up the Hi column, then you can use the following formula:

enter image description here

=IFERROR(SUMPRODUCT(Sheet1!$C$2:$C$25,(Sheet1!$A$2:$A$25=C$1)*(Sheet1!$B$2:$B$25=$A2)),"")

Match

  • If you want to find the first occurrence i.e. there is only one Date/Symbol combination or the Hi column contains text, then you can use the following array formula:

enter image description here

=IFERROR(INDEX(Sheet1!$C$2:$C$25,MATCH(1,(Sheet1!$A$2:$A$25=C$1)*(Sheet1!$B$2:$B$25=$A2),0)),"")
  • Related