Forum Discussion
MarkK777
Apr 13, 2019Copper Contributor
Formula HELP!!
Hi Everybody. I’m struggling with formula and wonder if you can help. I have 2 spreadsheets. The first one represents a list of payments made on a particular day of the month. The columns are dat...
- Apr 14, 2019
Mark, you takes the value from 1D array and shall position row in it using two criteria (date and room #), not row and column.
It could be
=IFERROR( INDEX($U$3:$U$19, MATCH(1, INDEX( ($A3=$T$3:$T$18)*(B$1=$S$3:$S$18),0),0 ) ), 0)
INDEX within MATCH generates array of TRUE and FALSE (or 1 and 0) depend on criteria is met or not. Multiplication means AND condition.
Please check in attached.
SergeiBaklan
Apr 13, 2019Diamond Contributor
Hi Mark,
The idea is correct, what exactly doesn't work? Perhaps you may attach sample file or at least give exact formula you use.
- MarkK777Apr 13, 2019Copper ContributorHI Sergei. As you can see in the attached file, I can't get the right value into the corresponding cells based on the room number and the date. The room number in the match function returns the room number, but the date in the match, returns relative row number.
So I kind of stuck here.
Thanks again for a quick response- SergeiBaklanApr 14, 2019Diamond Contributor
Hi Mark - unfortunately there was no file attached, could you please repeat it.
- MarkK777Apr 14, 2019Copper Contributor
Here it is