Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel 2010 Date

Posted on 2013-06-12
4
Medium Priority
?
159 Views
Last Modified: 2013-06-13
Is there a way to set an equation so it will look for its date ranges from another cell??

I have attached a sample sheet.

In Column E Row 2 I would like to have an equation that would say something like the following:

=SUMIFS(weight!B:B,weight!A:A,">=6/1/2013""and"<=6/10/2013)

And have the dates change based on Cell B2 and D2.

So if I change B2 to 5-31 it would change the date in the equation to:

=SUMIFS(weight!B:B,weight!A:A,">=5/31/2013""and"<=6/5/2013)

I also recognize that my SUMIFS equation is not exactly right.  May need a little help with it as well.  :-)

Does this make sense??

Thanks!!
EXPERTS-612.xlsx
0
Comment
Question by:HDM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 39242292
You don't seem to have a sheet called Weight on the attachment.....

....but in general you can use a formula like this

=SUMIFS(weight!B:B,weight!A:A,">="&B2,weight!A:A,"<="&D2)

You need to use & to concatenate the cell value to the "<=" or ">="

That formula will sum all values in column A where the dates in col B are between B2 and D2 inclusive)

regards, barry
0
 

Author Comment

by:HDM
ID: 39242376
That works Great!!  Thanks so much!!

One other question.  I can repost as another question if you would like.

My date column is pulled from SQL  It shows up as a "General" format.

Even after I change the format the equation still shows as Zero for its answer.

Column A data looks like this:

2013-04-01 Thru 2013-06-08

My equation looks like this:

=SUMIFS('2012 Crop Year'!J:J,'2012 Crop Year'!A:A,">="&B7,'2012 Crop Year'!A:A,"<="&D7)

My Qualifier boxes have dates like this:

2013-05-01

and

2013-06-01

I have MUCH data between those dates.

Any thoughts??

Thanks!!
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 total points
ID: 39242386
Sounds like your dates are formatted as text in which case they won't be recognised as dates so zero is the result I'd expect

Try this to convert to real dates:

Select column of data

Data > Text to columns > Finish

Now your formula should work......

regards, barry
0
 

Author Closing Comment

by:HDM
ID: 39244554
Thanks!!  :-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

636 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