PC Review


Reply
Thread Tools Rate Thread

How do I get a cell to give a result based on the month we are in?

 
 
=?Utf-8?B?U0hCbWdy?=
Guest
Posts: n/a
 
      17th Jul 2006
I want to calculate the % difference between actual and goal for the month we
are in. i.e. J1=I1/C1(when we are in Feb), or J1=I1/E1(when we are in
April). In other words, the answer for J1 will reflect whatever month we are
currently in. If you open up the spreadsheet in July it will be J1=H1/I1. I
think the formula may involve the TODAY function but I am not sure.


A B C D E F G H I
J
Jan Feb Mar April May June July Goal % Diff
1 Product 1
2 Product 2
 
Reply With Quote
 
 
 
 
VBA Noob
Guest
Posts: n/a
 
      17th Jul 2006

gives you the current month

=MONTH(TODAY()

--
VBA Noo
-----------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...fo&userid=3383
View this thread: http://www.excelforum.com/showthread.php?threadid=56222

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      17th Jul 2006
Hi!

If you month headers are in row 1 then the numeric data is is row 2.

Also, which is which:

=I1/C1
=I1/E1
=H1/I1

Is it goal/value or value/goal ?

Anyhow:

For goal/value, month headers in row 1:

=IF(I2="","",I2/INDEX(B2:H2,MATCH(TEXT(TODAY(),"mmm"),B1:H1,0)))

Biff

"SHBmgr" <(E-Mail Removed)> wrote in message
news:05593577-6E85-4CF9-B79D-(E-Mail Removed)...
>I want to calculate the % difference between actual and goal for the month
>we
> are in. i.e. J1=I1/C1(when we are in Feb), or J1=I1/E1(when we are in
> April). In other words, the answer for J1 will reflect whatever month we
> are
> currently in. If you open up the spreadsheet in July it will be J1=H1/I1.
> I
> think the formula may involve the TODAY function but I am not sure.
>
>
> A B C D E F G H I
> J
> Jan Feb Mar April May June July Goal % Diff
> 1 Product 1
> 2 Product 2



 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      17th Jul 2006
Oh, something I just noticed:

>Jan Feb Mar April May June July


The format needs to be the same throughout:

Either all are:

Jan.....Feb.....Mar.....Apr.....May.....Jun.....Jul

Or, all are:

January...February...March...April...May...June...July

Which ever way you choose, adjust this portion of the formula as
appropriate:

TEXT(TODAY(),"mmm")

For the short month name use the above, for the long month name use:

TEXT(TODAY(),"mmmm")

Biff

"Biff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi!
>
> If you month headers are in row 1 then the numeric data is is row 2.
>
> Also, which is which:
>
> =I1/C1
> =I1/E1
> =H1/I1
>
> Is it goal/value or value/goal ?
>
> Anyhow:
>
> For goal/value, month headers in row 1:
>
> =IF(I2="","",I2/INDEX(B2:H2,MATCH(TEXT(TODAY(),"mmm"),B1:H1,0)))
>
> Biff
>
> "SHBmgr" <(E-Mail Removed)> wrote in message
> news:05593577-6E85-4CF9-B79D-(E-Mail Removed)...
>>I want to calculate the % difference between actual and goal for the month
>>we
>> are in. i.e. J1=I1/C1(when we are in Feb), or J1=I1/E1(when we are in
>> April). In other words, the answer for J1 will reflect whatever month we
>> are
>> currently in. If you open up the spreadsheet in July it will be
>> J1=H1/I1. I
>> think the formula may involve the TODAY function but I am not sure.
>>
>>
>> A B C D E F G H I
>> J
>> Jan Feb Mar April May June July Goal % Diff
>> 1 Product 1
>> 2 Product 2

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup does not give the result in the cell even though it is kbee Microsoft Excel Worksheet Functions 2 15th Feb 2008 08:45 AM
Function to give value of a BLANK cell based on another =?Utf-8?B?SGF6?= Microsoft Excel Worksheet Functions 2 17th Jul 2006 12:57 PM
entering a26-02 into a cell give strange result =?Utf-8?B?QW50aG9ueQ==?= Microsoft Excel Misc 1 27th Jan 2005 10:34 PM
Find cell of equal value of a range and give result of ajoining co =?Utf-8?B?V29yZCBhbmQgRXhjZWwgc3RhcnR1cA==?= Microsoft Excel Programming 1 4th Aug 2004 09:58 PM
Dynamic Range Based on Cell Result not Empty Cell ExcelMonkey Microsoft Excel Discussion 3 11th Jun 2004 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:11 PM.