• 665K Members
• 3,244 Online
• 818K Conversations
SOLVED

Highlighted
Contributor

# Relating formula between 2 worksheets

Hi,

There is a date in cell C2 in attached spreadsheet as 01/03/2020. The values in cell F7 to F12 should reflect from "B" tab from cells "AB" to "AD" i.e. from Jan to Mar & from "C" tab from cells "AE" to "AM" i.e. from month April to Dec.

If date in cell C2 is changed to 01/04/2018, then values in cell F7 to F12 should reflect from "B" tab from cells "D" to "G" i.e. from Jan to April & from "C" tab from cells "H" to "O" i.e. from month May to Dec.

The formula should work looking into values corresponding in C7 to C12. It is like when we change date, it should look values from tab A and B considering corresponding values in C7 to C12.

Let me know in case of any clarification.

4 Replies
Highlighted

# Re: Relating formula between 2 worksheets

@Dharmendra_Bharwad Noticed that the row headers on B and C were not in the same order as in A. Perhaps you did this on purposes, but it makes solving your problem a lot more difficult. So, I changed that and offer you the simpler solution in sheet A. It uses SUMPRODUCT and two extra date fileds to also determine the start and end of year you want to sum.

Highlighted

# Re: Relating formula between 2 worksheets

Hi,
Thank you for reply. The formula works partially as there should not be multiple dates in row C. The formula should work when we just enter date in Cell C2. I would love it if it is solved.
Thanks again for the help!
Highlighted
Solution

# Re: Relating formula between 2 worksheets

@Dharmendra_Bharwad Moved the first and last date of the year to the hidden column H and they are now "calculated" by the DATE function, based on the date in C2.

Highlighted

# Re: Relating formula between 2 worksheets

Lol! It was so basic. I bothered you for that. Thanks alot for everything. Would love to get help repeatedly from stalwart like you. Thanks.