Solved

What  does the * in this Excel expression mean

Posted on 2015-01-09
10
254 Views
Last Modified: 2015-02-03
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.
0
Comment
Question by:morinia
  • 2
  • 2
  • 2
  • +2
10 Comments
 
LVL 53

Expert Comment

by:Will Szymkowski
ID: 40541103
This syntax means "One Year from today"

Will.
0
 
LVL 29

Expert Comment

by:gowflow
ID: 40541194
* means Multiply in this formula.

gowflow
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 40541986
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
 
LVL 5

Expert Comment

by:Hakan Yılmaz
ID: 40542061
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 50

Expert Comment

by:barry houdini
ID: 40552532
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
 
LVL 5

Expert Comment

by:Hakan Yılmaz
ID: 40565827
I suggest to close as follows,
http:#a40541986 barry houdini, solution, 500pts
0
 

Author Comment

by:morinia
ID: 40568427
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
 

Author Comment

by:morinia
ID: 40587302
I accepted the first solution but it was argued that the answer given was not correct.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now