There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
Excel 2003 - Selecting data within a date range with a further logic field?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Highland Learner's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Jul 2008
Location: London
Experience: Beginner
11-Jul-2008, 07:42 AM #1
Excel 2003 - Selecting data within a date range with a further logic field?
Hi, I was kindly helped my AJ on this site to end up with

=SUMPRODUCT(((A7:A18)>=A6)*((A7:A18)<=B6)*(B7:B18))

for the folowing:


2 colums, 'A' with the year (currently as plain number) 'B' with a simple number. There are roughtly 5/8 entries for each year, from 1989 to 2008. I need to sum 'b' for a range of years, (say 1990 to 1995), I can do it for one year value but not more.

but the further problem I have is:


I have a list of 160 rows with the year being the key data field and selecting various ranges say 1995 to 2006.

I need to capture the data in a way that I need to keep historic info for years gone (2006,2007) but then alter the sheet (remove a row if no longer relevant) for current and future years.

I was thinking of having a final column with a "year removed field" and the main formula above being dependant on that for inclusion, make sense?


Many thanks
Aj_old's Avatar
Computer Specs
Senior Member with 624 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
11-Jul-2008, 11:13 AM #2
Let see if I understood you right.
You wanna the year that are considered to old to be removed from the page and stored elsewhere?
Highland Learner's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Jul 2008
Location: London
Experience: Beginner
11-Jul-2008, 11:23 AM #3
Hi thanks for coming back to me, it is a little tough to explain. No not exactly. This is a list of ships, their year, weight etc. I want historical data (so the size of the fleet etc for 2006, 2007) to remain set in stone. BUT from the same sheet of data (in year order) as new ships come into use I want to add them at the bottom. The problem is, say when one from 2001 is removed (sunk, sold etc) if the data row were to be removed then is would be taken out of the historical data (which it can't as it was there then!) for current and future years it needs to be removed. (to explain there data goes up to 2010 ish as we know of ships that are going to be built.

So I was thinking of having a final field that says, "out of service" which would be blank unless it is removed when the year would be entered. Then the equation you sent me looks in that field?

Make sense?
Aj_old's Avatar
Computer Specs
Senior Member with 624 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
11-Jul-2008, 11:50 AM #4
OK
another shut:
You wanna to counted (sumed) data only for those ships that where produced in the period and are in use at the moment?
Highland Learner's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Jul 2008
Location: London
Experience: Beginner
11-Jul-2008, 11:54 AM #5
that is kinda where I believe I am now. can I post the excel sheet here? would you be prepared to take a look? it's nothing that is not in the public domain.
Aj_old's Avatar
Computer Specs
Senior Member with 624 posts.
 
Join Date: Sep 2007
Location: Moldova
Experience: Intermediate
11-Jul-2008, 12:01 PM #6
is always easier to work when you have a visual example, I mean a sample of the file!
but it's your decision to post a sample or not! If you wanna you can send it to me via mail, I'll take a look, and see what can be done! Or just remove any "personal" info and uppload it here!

You can make a new column named "OutOfSerice", in which you'll inpunt the year (or even the date) ship was removed from use!
And change the formulas:
Code:
=SUMPRODUCT(((A7:A18)>=A6)*((A7:A18)<=B6)*(B7:B18)*(D7:D18)<D1)
where D718 is the data rage containing year, D1is the current data or any other year you wanna
__________________
The BestS
AJ
Highland Learner's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Jul 2008
Location: London
Experience: Beginner
11-Jul-2008, 12:10 PM #7
Tried to email you ...?
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:02 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.