Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Hakojin
 
Posts: n/a
Default Sum based on conditions

Ok, I need a formula to give me a summed date based on the rank

ex. if rank=1 then due date = start date + 5
if rank=2 then due date = start date + 3
if rank=3 then due date = start date + 1

Date Started(A) Rank(D) Due Date (E)
5/10/06 1 5/15/06
5/08/06 2 5/11/06
5/9/06 3 5/10/06

  #2   Report Post  
Posted to microsoft.public.excel.misc
Trevor Shuttleworth
 
Posts: n/a
Default Sum based on conditions

=A2+CHOOSE(D2,5,3,1)

Regards

Trevor


"Hakojin" wrote in message
...
Ok, I need a formula to give me a summed date based on the rank

ex. if rank=1 then due date = start date + 5
if rank=2 then due date = start date + 3
if rank=3 then due date = start date + 1

Date Started(A) Rank(D) Due Date (E)
5/10/06 1 5/15/06
5/08/06 2 5/11/06
5/9/06 3 5/10/06



  #3   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default Sum based on conditions


Try


=IF(B1 = 1,A1+5,IF(B1 = 2,A1+3,IF(B1 = 3,A1+1,"")))

in cell C1


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=544466

  #4   Report Post  
Posted to microsoft.public.excel.misc
Hakojin
 
Posts: n/a
Default Sum based on conditions

worked perfect, thank you very much.

"Trevor Shuttleworth" wrote:

=A2+CHOOSE(D2,5,3,1)

Regards

Trevor


"Hakojin" wrote in message
...
Ok, I need a formula to give me a summed date based on the rank

ex. if rank=1 then due date = start date + 5
if rank=2 then due date = start date + 3
if rank=3 then due date = start date + 1

Date Started(A) Rank(D) Due Date (E)
5/10/06 1 5/15/06
5/08/06 2 5/11/06
5/9/06 3 5/10/06




  #5   Report Post  
Posted to microsoft.public.excel.misc
Trevor Shuttleworth
 
Posts: n/a
Default Sum based on conditions

You're welcome. Thanks for the feedback


"Hakojin" wrote in message
...
worked perfect, thank you very much.

"Trevor Shuttleworth" wrote:

=A2+CHOOSE(D2,5,3,1)

Regards

Trevor


"Hakojin" wrote in message
...
Ok, I need a formula to give me a summed date based on the rank

ex. if rank=1 then due date = start date + 5
if rank=2 then due date = start date + 3
if rank=3 then due date = start date + 1

Date Started(A) Rank(D) Due Date (E)
5/10/06 1 5/15/06
5/08/06 2 5/11/06
5/9/06 3 5/10/06






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
Total or Count based on multiple conditions CC Excel Discussion (Misc queries) 4 May 17th 06 10:50 PM
Add cells from a range based on 2 conditions from 2 other ranges Kelly Excel Worksheet Functions 3 July 7th 05 07:40 PM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
Create a total based on multiple conditions is not giving correct. Jacob Excel Worksheet Functions 2 November 4th 04 04:07 AM
SUMIF based on 2 conditions TimH Excel Worksheet Functions 3 October 28th 04 08:18 PM


All times are GMT +1. The time now is 03:57 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"