What does the * in this Excel expression mean

Experts,

I put an expression in Excel and Excel  modified it.

=IF(OR(MONTH(1&"-"&E$7)<MONTH(TODAY()),2014*(YEAR(TODAY()))),SUMIFS(MCLAIMS,MMONTH,MONTH(1&"-"&E$7),MEDIT,$C9),0)

Can someone tell me what the *(YEAR(TODAY())  DOES

I was trying to test if   2014 is less than  Year of today's date

The formula works I just don't understand the syntax Excel changed it to.
moriniaAdvanced Analytics AnalystAsked:
Who is Participating?
 
barry houdiniCommented:
That part of the formula is actually a little bit meaningless and probably not working as you intend it to.

The specific part you mention, i.e.

2014*(YEAR(TODAY()))

is simply multiplying the current year by 2014 so that will currently give you 2014*2015 = 4058210

....but you are not comparing that value against anything, so when use as one of the "conditions" in an OR function, any number other than zero will result in a TRUE outcome. This means that the IF function is actually redundant in your formula, whatever the month in E7 or today's date the SUMIFS part will always be actioned.

You say you want to test if 2014 is less than the year of today's date. I don't really see the point of that either, because unless you are going to change your system clock so that today is a past date that will always return TRUE.....but having said that you would do that like this:

2014<YEAR(TODAY())

I saw your original question but didn't really understand what you wanted to do, perhaps you can explain.

It's probably better to start by trying to address your requirements, rather than by trying to fix a formula that isn't actually working as intended

There's no rush, I've got all week!

regards, barry
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
This syntax means "One Year from today"

Will.
0
 
gowflowCommented:
* means Multiply in this formula.

gowflow
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
Hakan YılmazTechnical Office MEP EngineerCommented:
This does multiplication.

And in a condition, a number means TRUE, zero means FALSE

you will always get a number with your formula 2014*(YEAR(TODAY()))
so your OR function will always have at least one TRUE, it will always return TRUE too.
0
 
barry houdiniCommented:
You've accepted the one answer that is actually furthest from being correct

In no way does what you have mean "One year from today"

regards, barry
0
 
Hakan YılmazTechnical Office MEP EngineerCommented:
I suggest to close as follows,
http:#a40541986 barry houdini, solution, 500pts
0
 
moriniaAdvanced Analytics AnalystAuthor Commented:
I would like to delete question.  I am unsure of what to do.  The formula worked.  I was just trying to figure out what it was doing.
0
 
moriniaAdvanced Analytics AnalystAuthor Commented:
I accepted the first solution but it was argued that the answer given was not correct.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.