#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Calculating

I need a formula that can calculate the following:

If month($B$2) equal month (D10) the maximum it can calculate to is 1,
otherwise add D11+D12-D13
The formula is in D14. So one month that correspond with B2 is going to
have a value of 1 or less when you add row 11and 12 then minus13. while the
other will have the right result.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Calculating

hi
i might be a tad slow but..
If month($B$2) equal month (D10) the maximum it can calculate to is 1,
otherwise add D11+D12-D13

assuming that B2 and D10 are real dates....
=if(month($B$2)=Month(D10),1 ,sum(D11+D12-D13))

or did i miss something? or did you leave out something?

regards
FSt1

"Link" wrote:

I need a formula that can calculate the following:

If month($B$2) equal month (D10) the maximum it can calculate to is 1,
otherwise add D11+D12-D13
The formula is in D14. So one month that correspond with B2 is going to
have a value of 1 or less when you add row 11and 12 then minus13. while the
other will have the right result.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Calculating

"Link" wrote:
I need a formula that can calculate the following:
If month($B$2) equal month (D10) the maximum it can calculate to is 1,
otherwise add D11+D12-D13
The formula is in D14. So one month that correspond with B2 is going to
have a value of 1 or less when you add row 11and 12 then minus13. while
the other will have the right result.


I do not understand your description. But by any chance, is the following
what you want:

=if(month($B$2)=month(D10), min(1,D11+D12-D13), D11+D12-D13)

Reply
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
calculating Link[_2_] Excel Worksheet Functions 14 May 30th 09 03:42 AM
CALCULATING A VALUE Chris Excel Discussion (Misc queries) 2 July 4th 08 02:36 PM
Not Calculating Mike Dobony Excel Worksheet Functions 14 November 18th 07 03:24 AM
Calculating Age Mert Excel Worksheet Functions 3 September 8th 06 06:38 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM


All times are GMT +1. The time now is 08:06 AM.

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

About Us

"It's about Microsoft Excel"