Greetings Everyone!
Request for some assistance with a massive task I’ve been pushed against. I’ve enclosed a spreadsheet depicting the layout in which my data is available. I need some assistance to do the following using the Base Date in Column B.
Here’s the explanation:
Populate the data in columns C to H by row
Step 1: Logic for Column C: Compare the Base Date in Column B with the Date in the 3rd cell (Labeled D) under each of the categories (Colum I onwards)
Add all the values in the 4th column (labeled A) under each category and populate in Column C cell provided the date in the 3rd Column of each category is less than or equal to the base date
Step 2: Populate data for the category whose Date in the 3rd column of each category is the closest to the base date, but does not exceed the base date. In example 1:Base Date = 2/24/2010
Closest Date = 4/20/2007. As a result, the data in D to G columns have been populated from Category 5
Last step: Column H is the sum from column A of all categories for which the category dates exceed the Base Date
Have enclosed a sample file with the expected output in column C to H. I would be obliged if you could help me with a formula or something that can do this magic for over 2000 rows of data that I have.
Please let me know if anything is unclear or need further explanation.
Best,
Spi
Bookmarks