Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 60
  • Last Modified:

Index Match

Hello,

I cant seem to get the total for the particular date.
Its better to see the attached excel.  

I want to display the number in a cell on another sheet using Index and Match.  

Please see attached for a better idea.
EEqstn.xlsx
0
pdvsa
Asked:
pdvsa
  • 3
  • 2
  • 2
2 Solutions
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Shouldn't it be like this?
=INDEX(Data!9:9,MATCH(C2,Data!3:3))
0
 
Rob HensonIT & Database AssistantCommented:
Further to Neeraj's comment, to get an exact match on the date use:

=INDEX(Data!9:9,MATCH(C2,Data!3:3,0))

Omitting the last argument may return the wrong value if an exact match on the date is not found.

You could also use SUMIF function:

=SUMIF(Data!3:3,$C$2,Data!9:9)
0
 
pdvsaAuthor Commented:
HI guys, if I use the Index:  =INDEX(Data!9:9,MATCH(C2,Data!3:3)) and Robs as well.
the date that it returns is like this:  1/0/1900?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Rob HensonIT & Database AssistantCommented:
Try changing the cell format.

Excel will try and format a cell based on the source cells and will occasionally do it incorrectly.
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please refer to the attached.
EEqstn.xlsx
0
 
pdvsaAuthor Commented:
Perfect!  thank you both....
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad we could help.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now