Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

Copy data based on date to another cell but other column date is not exact match

$
0
0

I want to match the dates in Column A to the Closest date in Column E (if a date in column A doesn't match to dates in Column E then I want to return the next available date in Column E and I've done with this INDEX MATCH formula:

=INDEX(INDEX(E:E, MATCH(A3,E:E,1)+1,1)

What I'm having trouble with is putting the Expenses Title and values in the range E:G from the range A:C. The "Output Expenses Title" and "Output Values" Column should contain values from Expenses Title (Column B) and Values (Column C) based on the Closet date Matched (next greater date in case not exactly matched).

I think it would be done using the Query function but not sure. And apologies I'm new to StackExchange and wasn't able to provide a comprehensive description of my problem. I've also made changes in the attached spreadsheet to better explain it. Thank You for your help.

https://docs.google.com/spreadsheets/d/1LR_Z2cJo1ZqGMJcHCJFr7dA7t3jYnTrjvNZuDYTshp8/edit?usp=sharing


Viewing all articles
Browse latest Browse all 9843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>