The_Kurgan
Active Member
- Joined
- Jan 10, 2006
- Messages
- 270
I'm going slightly insane with this. Basically, I need to know if there is a way to choose a value based on the closest date that's >= a given date.
Here's an example:
If my Customer ID = 100, the sign-up agreement = VIP, and the sign-up date = 03/20/2014, I need a formula to produce a $300 Credit.
<tbody>
</tbody>
I've found a formula to pull the max date given ID & agreement, but not "the next closest & under" the given date. Any help would be greatly appreciated!
Here's an example:
If my Customer ID = 100, the sign-up agreement = VIP, and the sign-up date = 03/20/2014, I need a formula to produce a $300 Credit.
Col A | Col B | Col C | Col D |
Customer ID | Credit | Sign-up agreement | Sign-up Date |
100 | $100.00 | Standard | 1/1/2014 |
100 | $200.00 | VIP | 2/18/2014 |
100 | $300.00 | VIP | 3/15/2014 |
100 | $400.00 | VIP | 6/1/2014 |
100 | $500.00 | Standard | 10/1/2014 |
200 | $600.00 | Standard | 1/1/2014 |
200 | $700.00 | VIP | 2/18/2014 |
200 | $800.00 | VIP | 6/1/2014 |
200 | $900.00 | Standard | 10/1/2014 |
<tbody>
</tbody>
I've found a formula to pull the max date given ID & agreement, but not "the next closest & under" the given date. Any help would be greatly appreciated!