#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 989
Default Formula Question

Sorry, began posting earlier and hit send by mistake!

I have a spreadhsheet that I enter orders onto with the requested delivery
date and order volume.
e.g A1=April 1st, B1=10
A2=April 3rd, B2=15
A3=April2nd, B3=10 etc etc etc

Thing is, the dates dont run consecutively, they are all over the place.
But what I want is a formula that will pick out the dates from 1st month up
to Today +1 (So for today it would search up to 16th April) and add up the
order volume up to that date, I dont want it to pick out any future dates and
add them in, and it needs to be real time eg next morning when I come in the
date resets to "today + 1"

Any thoughts?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Formula Question

Hi
I assume that your dates are text and not real dates format,
otherwise you need a different formula
try this formula
=SUMIF(A2:A10,"April*",B2:B10) or

use a cell to hold the reference. eg in C2,you need to type April*
=SUMIF(A2:A10,C2,B2:B10)

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"Mark" wrote:

Sorry, began posting earlier and hit send by mistake!

I have a spreadhsheet that I enter orders onto with the requested delivery
date and order volume.
e.g A1=April 1st, B1=10
A2=April 3rd, B2=15
A3=April2nd, B3=10 etc etc etc

Thing is, the dates dont run consecutively, they are all over the place.
But what I want is a formula that will pick out the dates from 1st month up
to Today +1 (So for today it would search up to 16th April) and add up the
order volume up to that date, I dont want it to pick out any future dates and
add them in, and it needs to be real time eg next morning when I come in the
date resets to "today + 1"

Any thoughts?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default Formula Question

If cells in column A have a date format :
=SUMPRODUCT((A1:A100<=TODAY()+1)*(MONTH(A1:A100)=4 )*B1:B100)
Daniel

Sorry, began posting earlier and hit send by mistake!

I have a spreadhsheet that I enter orders onto with the requested delivery
date and order volume.
e.g A1=April 1st, B1=10
A2=April 3rd, B2=15
A3=April2nd, B3=10 etc etc etc

Thing is, the dates dont run consecutively, they are all over the place.
But what I want is a formula that will pick out the dates from 1st month up
to Today +1 (So for today it would search up to 16th April) and add up the
order volume up to that date, I dont want it to pick out any future dates and
add them in, and it needs to be real time eg next morning when I come in the
date resets to "today + 1"

Any thoughts?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Formula Question

If you put real dates in column A, then you can use a formula like this:

=SUMIF(A:A,"<="&TODAY(),B:B)
to sum all the values in column B where column A is less than or equal to today.

But I'm not sure what 1st month means.

If you wanted everything that happened between the first of the current month
until today, you could use:

=SUMIF(A:A,"<="&TODAY(),B:B) - SUMIF(A:A,"<="&(TODAY()-DAY(TODAY())),B:B)

=today()-day(today())
will give the last day of the previous month.

So the formula is just summing _everything_ that happened through today and then
subtracting stuff that happened last month and before.






Mark wrote:

Sorry, began posting earlier and hit send by mistake!

I have a spreadhsheet that I enter orders onto with the requested delivery
date and order volume.
e.g A1=April 1st, B1=10
A2=April 3rd, B2=15
A3=April2nd, B3=10 etc etc etc

Thing is, the dates dont run consecutively, they are all over the place.
But what I want is a formula that will pick out the dates from 1st month up
to Today +1 (So for today it would search up to 16th April) and add up the
order volume up to that date, I dont want it to pick out any future dates and
add them in, and it needs to be real time eg next morning when I come in the
date resets to "today + 1"

Any thoughts?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula question Sarah Excel Worksheet Functions 2 December 3rd 07 11:17 PM
Formula Question Skydiver Excel Discussion (Misc queries) 1 October 6th 06 06:18 PM
Formula question goodolehuskers Excel Worksheet Functions 1 July 19th 06 11:10 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula Question JDT Excel Discussion (Misc queries) 2 January 30th 05 01:17 PM


All times are GMT +1. The time now is 01:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"