0

Summary tab: Picture of destination - Summary tab

Source tab: Picture of source - PFS tab

I'm having some trouble using index match combo and getting the data to reference correctly.

what I am trying to achieve is in a tab called "Summary" I have a calendar with range D5:O6. the first cell in the calendar should change everyday to reflect the current date which will change the rest of the row making a rolling calendar. I have a data reference sheet called "PFS" from which the data needs to be referenced.

The thing I'm having trouble with is that with the formula

=INDEX(PFS, MATCH(A8,Snames,0),MATCH(D5,Sdates,0))

is returning the top left intersection (B8 of the source tab) of A8 and D5 values smith, bob & 4-Aug. a cell that i have entered the value "Wrong Corner".

Snames A8:A9, Sdates D5:O5 are the rows and columns containing the dates and names from the Summary tab

what I need help with is why its returning the wrong intersection and what I can do different to get the data I'm looking for.

The correct return would be the number one, which I have conditionally formatted to turn the cell blue and blank the text

1
  • If Snames is A8:A9, then MATCH(A8,Snames,0) will return 1. If Sdates is D5:O5 then MATCH(D5,Sdates,0) will return 1. =INDEX(PFS, 1,1) will therefore return the first cell of the range PFS. What is the range PFS? Commented Aug 4, 2021 at 20:07

1 Answer 1

1

You don't show what PFS references to. It seems to start in A1.

You can either use a range that starts in the correct cell, or add the required offset to the Match results.

=INDEX(PFS, MATCH(A8,Snames,0)+2,MATCH(D5,Sdates,0)+2)

Also make sure that Sname and Sdates refer to the ranges in the Source tab, not the Summary tab.

Sign up to request clarification or add additional context in comments.

2 Comments

That certainly fixes my issue with the references and returns the correct value.
@placidrain56 If that resolved your issue, please mark the answer as described in the tour. If it didn't, please leave a comment, so I can follow up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.