#1   Report Post  
Deepwater
 
Posts: n/a
Default Formula

I am looking for a formula, that assiagn certain values for certain months.

for example : i want to compare the date in Cell B4, if it falls in
following months it should asign following values each month
for Jan, March, June, Aug, Sep = 24 , July=72 and remaining months " 0 "

Thanks inadvance.

  #2   Report Post  
Sandy Mann
 
Posts: n/a
Default


Deepwater,

Try:

=IF(OR(MONTH(B4)={1,3,6,8,9}),24,IF(MONTH(B4)=7,72 ,0))

HTH

Sandy
--
to e-mail direct replace @mailinator.com with @tiscali.co.uk


"Deepwater" wrote in message
...
I am looking for a formula, that assiagn certain values for certain

months.

for example : i want to compare the date in Cell B4, if it falls in
following months it should asign following values each month
for Jan, March, June, Aug, Sep = 24 , July=72 and remaining months " 0 "

Thanks inadvance.



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=24*(SUMPRODUCT(--(MONTH($B$4)={1,3,6,8,9}))+3*(MONTH(B4)=7))

In article ,
Deepwater wrote:

I am looking for a formula, that assiagn certain values for certain months.

for example : i want to compare the date in Cell B4, if it falls in
following months it should asign following values each month
for Jan, March, June, Aug, Sep = 24 , July=72 and remaining months " 0 "

Thanks inadvance.

  #4   Report Post  
Deepwater
 
Posts: n/a
Default

Thanks JE

I got it..

"JE McGimpsey" wrote:

One way:

=24*(SUMPRODUCT(--(MONTH($B$4)={1,3,6,8,9}))+3*(MONTH(B4)=7))

In article ,
Deepwater wrote:

I am looking for a formula, that assiagn certain values for certain months.

for example : i want to compare the date in Cell B4, if it falls in
following months it should asign following values each month
for Jan, March, June, Aug, Sep = 24 , July=72 and remaining months " 0 "

Thanks inadvance.


  #5   Report Post  
Deepwater
 
Posts: n/a
Default

Thanks Sandy
I got it..
"Deepwater" wrote:

I am looking for a formula, that assiagn certain values for certain months.

for example : i want to compare the date in Cell B4, if it falls in
following months it should asign following values each month
for Jan, March, June, Aug, Sep = 24 , July=72 and remaining months " 0 "

Thanks inadvance.

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
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


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