Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula 2
date calculation 4
Formula IF 1
Formula showing 0 - don't want it displayed 2
new values 2
Countif Problem 4
COPYING CONDITIONAL FORMATTING WHEN COPYING CELLS OVER 2
question about sum 2

Back
Top