Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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 certain months say Jan or March, it should take "24" in cell C4 other wise "0" Thanks inadvance. |
#2
|
|||
|
|||
The MONTH() function will returns an integer, 1 thru 12, representing
the month number of a date. In your example, the formula in C4 might be =IF(OR(MONTH(B4)=1,MONTH(B4)=3),24,0) This formula checks the month number of the date in B4, and if it is either January or March, returns the value 24. Is this what you're looking for? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IF & VLOOKUP FORMULA | Excel Worksheet Functions | |||
Problem with VBA returning the contents of a long formula. | Excel Discussion (Misc queries) | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) | |||
Help with macro formula and variable | Excel Worksheet Functions | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions |