#1   Report Post  
Junior Member
 
Posts: 5
Default Help Needed

i need help with something that looks simple but i cant for the life of me work it out

In cells E10 i want to input a date e.g 01/02/12
i want the worksheet to automatically work out
what target i have hit in cell G10

my targets are
13 weeks
26 week
39 week
52 week
52+

i want the cell G10 to populate the content into one of the 5 targets based on the date i put in

so if i input

01/02/12 cell G10 should automatically have text entered "39 Week"

i also want the formula to work in all cells E10 and G10 onwards
  #2   Report Post  
Member
 
Location: Bangalore
Posts: 41
Default

Quote:
Originally Posted by AshKhan View Post
i need help with something that looks simple but i cant for the life of me work it out

In cells E10 i want to input a date e.g 01/02/12
i want the worksheet to automatically work out
what target i have hit in cell G10

my targets are
13 weeks
26 week
39 week
52 week
52+

i want the cell G10 to populate the content into one of the 5 targets based on the date i put in

so if i input

01/02/12 cell G10 should automatically have text entered "39 Week"

i also want the formula to work in all cells E10 and G10 onwards
Hi,

I would recommend an easy VBA function for this purpose but if you are looking for something in Excel, here is a formula that works for this situation.

=IF(INT((TODAY()-A2)/7)<=13,"13 Weeks",IF(INT((TODAY()-A2)/7)<=26,"26 Weeks",IF(INT((TODAY()-A2)/7)<=39,"39 Weeks",IF(INT((TODAY()-A2)/7)<=52,"52 Weeks","52+ Weeks"))))

This formula assumes that your date is in Cell A2.

Please let me know if this works for you.

Prashant
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
Deleting Rows With Non-Needed Data between Needed Data Daren Excel Worksheet Functions 2 September 30th 08 06:47 PM
MVP HELP NEEDED ! Jane Excel Worksheet Functions 5 February 6th 07 10:48 AM
VIP needed! Ray Excel Programming 3 January 3rd 07 08:28 PM
Help needed [email protected] Excel Programming 1 April 4th 06 02:05 PM
help needed BDCC Excel Programming 1 August 11th 03 03:24 PM


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

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"