LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
haidith
 
Posts: n/a
Default comission split based on 365 days

I have to calculate the commission split of a selling agent based on what he
has been closing during the last 365 days.

These are the columns that are involved in this calculation
H N
Total sale - closing date

When I enter the latest closing date (plus the corresponding total sale),
the system reviews this date and the previous ones (about 30 of 40 records)
and check which ones falls in the €ś365 days€ť condition, and then, gives as
result the sum of the total sales of those days that enter in that condition.

I used a IF formula but, only allowed me 7 conditions€¦

=(IF((N31-$N$2)<=365,SUM($H$2:H31),IF((N31-$N$3)<=365,SUM($H$3:H31),(IF((N31-$N$4)<=365,SUM($H$4:H31),(IF((N31-$N$5)<=365,SUM($H$5:H31),(IF((N31-$N$6)<=365,SUM($H$6:H31),(IF((N31-$N$7)<=365,SUM($H$7:H31),(IF((N31-$N$8)<=365,SUM($H$8:H31),0)))))))))))))

Could anyone help me with this?

Thanks

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No. of days split into periods Brian Ferris Excel Discussion (Misc queries) 3 January 31st 06 03:29 PM
Conditional formatting based on a date + 30 days Laura4363 Excel Discussion (Misc queries) 5 January 13th 06 11:07 AM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM
Split cell values based on content mel Excel Worksheet Functions 4 March 30th 05 04:03 PM
How can I calculate Vacation Time earned based on length of emplo. Kim Excel Discussion (Misc queries) 2 March 15th 05 08:04 PM


All times are GMT +1. The time now is 02:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"