helpcharity
New Member
- Joined
- Apr 25, 2019
- Messages
- 8
- Office Version
- 2019
- Platform
- Windows
Help please,
I have data for the performance of person during a 12 month period, in a worksheet named after them.
I want to create a total's sheet which shows how much fruit each person has picked for certain selected months of the season.
The current forumla works fine: =SUMPRODUCT(VLOOKUP($B10,INDIRECT(F$9&"!"&"$B:$Q"),{6,7,9,10},0))
But I want to replace the text "{6,7,9,10}" with the contents of another cell which uses the TextJoin formula to create "6,7,9,10".
I tried: =SUMPRODUCT(VLOOKUP($B10,INDIRECT(F$9&"!"&"$B:$Q"),INDIRECT("{"&C5&"}",0)))
But this just generates an #REF message
I have data for the performance of person during a 12 month period, in a worksheet named after them.
I want to create a total's sheet which shows how much fruit each person has picked for certain selected months of the season.
The current forumla works fine: =SUMPRODUCT(VLOOKUP($B10,INDIRECT(F$9&"!"&"$B:$Q"),{6,7,9,10},0))
But I want to replace the text "{6,7,9,10}" with the contents of another cell which uses the TextJoin formula to create "6,7,9,10".
I tried: =SUMPRODUCT(VLOOKUP($B10,INDIRECT(F$9&"!"&"$B:$Q"),INDIRECT("{"&C5&"}",0)))
But this just generates an #REF message