alexbarrow
New Member
- Joined
- Jul 29, 2019
- Messages
- 3
Hello All!
Thanks for all of the wonderful posts here, got pretty far with this but got stuck on a few things. Trying to create a formula to allocated revenue over months based on the start and end date of a project. The goal would be to distribute revenue appropriately based on these dates.
Everything was working great with my formula until things entered into a new year where my formula stopped working and is pulling inaccurate results. The formula also doesn't work if the project time extends from one year to the next.
Anyone know a workaround? Open to different solutions to accomplish the same basic thing which is allocating revenue based on the start and end dates across multiple months as a portion of the total fee.
Thanks for all of the wonderful posts here, got pretty far with this but got stuck on a few things. Trying to create a formula to allocated revenue over months based on the start and end date of a project. The goal would be to distribute revenue appropriately based on these dates.
Everything was working great with my formula until things entered into a new year where my formula stopped working and is pulling inaccurate results. The formula also doesn't work if the project time extends from one year to the next.
Anyone know a workaround? Open to different solutions to accomplish the same basic thing which is allocating revenue based on the start and end dates across multiple months as a portion of the total fee.
Studio Tracker - Sample Data.xlsx | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | AF | AG | |||
1 | |||||||||||||||||||||||||||||||||||
2 | FEE | WEEKS | START | END | DAILY | 12/31/21 | 1/31/22 | 2/28/22 | 3/31/22 | 4/30/22 | 5/31/22 | 6/30/22 | 7/31/22 | 8/31/22 | 9/30/22 | 10/31/22 | 11/30/22 | 12/31/22 | 1/31/23 | 2/28/23 | 3/31/23 | 4/30/23 | 5/31/23 | 6/30/23 | 7/31/23 | 8/31/23 | 9/30/23 | 10/31/23 | 11/30/23 | 12/31/23 | 1/31/24 | 2/1/24 | |||
3 | $ 100,000 | 20 | 5/5/22 | 9/22/22 | $ 714.29 | $ 18,571.43 | $ 21,428.57 | $ 22,142.86 | ########### | ########### | ########## | ########## | ########## | ||||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E3 | E3 | =D3+C3*7 |
F3 | F3 | =IFERROR(B3/C3/7,"") |
H3:AG3 | H3 | =IF(AND(MONTH($D3)=MONTH(H$2),YEAR($D3)=YEAR(H$2),MONTH($E3)=MONTH(H$2),YEAR($E3)=YEAR(H$2)),$B3,IF(AND(MONTH($D3)=MONTH(H$2),YEAR($D3)=YEAR(H$2),MONTH($E3)<>MONTH(H$2)),(H$2-$D3)*$F3,IF(AND(MONTH($D3)<MONTH(H$2),MONTH($E3)>MONTH(H$2)),(H$2-G$2)*$F3,IF(AND(MONTH($E3)=MONTH(H$2),YEAR($E3)=YEAR(H$2),MONTH($D3)<>MONTH(H$2)),($E3-G$2)*$F3,"")))) |