Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

How do I use the MONTH() function inside an IF/AND function in excel

$
0
0

I am trying to make a sheet where excel grabs the month from a date in a cell as well as the "type" from another cell if those results are true it returns a 1 and if not returns a 0. I also want it to add the rows in the column but that will probably just mean adding SUM() to the front before the IF statement. Here is what I have so far but it won't function.

=IF(AND(MONTH($I2) = 11, $K2 = "Yes") $C2 = "Simple",1,0)

So here we have if the month in cell I2 is November (11) and the value of the string in K2 is "Yes" and the value in cell C2 is "Simple" then return 1 other wise return 0.

I have done research online but I am starting to think that this is not possible? Maybe there is a different way through VLOOKUP? Not sure which way to go.


Viewing all articles
Browse latest Browse all 88054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>