Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default SUMIF CRITERIA PROBLEM

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007, the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries


  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default SUMIF CRITERIA PROBLEM

is it because the 2007 is a date? try and copy / past special to another
cell for each of these and make sure the format and data are the same. That
is what I had an issue with before.

"GEORGE HUMPHRIES" wrote:

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007, the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default SUMIF CRITERIA PROBLEM

They started life as a date, but I used the year(date) function to derive
the value of the cells I am referring to.

e.g.

date in b1 = 22/01/07, value of cell d1 = year(b1)

SUMIF(YEAR,D1,VALUE)

I have also tried typing in the cell value as a number before referring to
it but it doesn't seem to work.

George


"Don" wrote in message
...
is it because the 2007 is a date? try and copy / past special to another
cell for each of these and make sure the format and data are the same.
That
is what I had an issue with before.

"GEORGE HUMPHRIES" wrote:

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007, the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default SUMIF CRITERIA PROBLEM

YEAR and VALUE are reserved words in Excel because they are the names
of functions. Change your names to something else and try it with the
new names.

Hope this helps.

Pete

On Jan 22, 12:55*am, "GEORGE HUMPHRIES"
wrote:
They started life as a date, but I used the year(date) function to derive
the value of the cells I am referring to.

e.g.

date in b1 = 22/01/07, value of cell d1 = year(b1)

SUMIF(YEAR,D1,VALUE)

I have also tried typing in the cell value as a number before referring to
it but it doesn't seem to work.

George

"Don" wrote in message

...



is it because the 2007 is a date? *try and copy / past special to another
cell for each of these and make sure the format and data are the same.
That
is what I had an issue with before.


"GEORGE HUMPHRIES" wrote:


Can anyone help me please.


I have a problem with the criteria part of sumif using cell values.


I can type a value into a criteria directly in for example 2007, and it
works.


e.g. SUMIF(YEAR,2007,VALUE)


Where year and value are ranges.


But when I refer to a cell such as B12 which contains the value 2007, the
criteria doesn't work.


SUMIF(YEAR,B12,VALUE)


Does the cell reference need to be MARKED in any way?


George Humphries- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default SUMIF CRITERIA PROBLEM

2007 wont be a date, unless yo tell it, its a date (via the format menu).

When you use the cell ref, are you getting any kind of an answer? or a #value?

I've just tried what you have, and it works fine, bit of a strange one really.


"Don" wrote:

is it because the 2007 is a date? try and copy / past special to another
cell for each of these and make sure the format and data are the same. That
is what I had an issue with before.

"GEORGE HUMPHRIES" wrote:

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007, the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default SUMIF CRITERIA PROBLEM

Sorry,

By mistake I simplified the example, it should have read

SUMIF(YEAR,"<B12",VALUE)

Using just the cell reference it works, but when I try to set it to less
than the cell reference it doesn't.

George


"Lorcan Dene" wrote in message
...
2007 wont be a date, unless yo tell it, its a date (via the format menu).

When you use the cell ref, are you getting any kind of an answer? or a
#value?

I've just tried what you have, and it works fine, bit of a strange one
really.


"Don" wrote:

is it because the 2007 is a date? try and copy / past special to another
cell for each of these and make sure the format and data are the same.
That
is what I had an issue with before.

"GEORGE HUMPHRIES" wrote:

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007,
the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default SUMIF CRITERIA PROBLEM

Try:
=sumif(year,"<"&b12,value)

If you wanted to put the date into formula directly:
=sumif(year,"<"&date(2007,12,25),valuel)
(for example)


GEORGE HUMPHRIES wrote:

Sorry,

By mistake I simplified the example, it should have read

SUMIF(YEAR,"<B12",VALUE)

Using just the cell reference it works, but when I try to set it to less
than the cell reference it doesn't.

George

"Lorcan Dene" wrote in message
...
2007 wont be a date, unless yo tell it, its a date (via the format menu).

When you use the cell ref, are you getting any kind of an answer? or a
#value?

I've just tried what you have, and it works fine, bit of a strange one
really.


"Don" wrote:

is it because the 2007 is a date? try and copy / past special to another
cell for each of these and make sure the format and data are the same.
That
is what I had an issue with before.

"GEORGE HUMPHRIES" wrote:

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007,
the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries




--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default SUMIF CRITERIA PROBLEM

Watch out for that typo in the second example.

=sumif(year,"<"&date(2007,12,25),value)

Dave Peterson wrote:

Try:
=sumif(year,"<"&b12,value)

If you wanted to put the date into formula directly:
=sumif(year,"<"&date(2007,12,25),valuel)
(for example)

GEORGE HUMPHRIES wrote:

Sorry,

By mistake I simplified the example, it should have read

SUMIF(YEAR,"<B12",VALUE)

Using just the cell reference it works, but when I try to set it to less
than the cell reference it doesn't.

George

"Lorcan Dene" wrote in message
...
2007 wont be a date, unless yo tell it, its a date (via the format menu).

When you use the cell ref, are you getting any kind of an answer? or a
#value?

I've just tried what you have, and it works fine, bit of a strange one
really.


"Don" wrote:

is it because the 2007 is a date? try and copy / past special to another
cell for each of these and make sure the format and data are the same.
That
is what I had an issue with before.

"GEORGE HUMPHRIES" wrote:

Can anyone help me please.

I have a problem with the criteria part of sumif using cell values.

I can type a value into a criteria directly in for example 2007, and it
works.

e.g. SUMIF(YEAR,2007,VALUE)

Where year and value are ranges.

But when I refer to a cell such as B12 which contains the value 2007,
the
criteria doesn't work.

SUMIF(YEAR,B12,VALUE)

Does the cell reference need to be MARKED in any way?

George Humphries




--

Dave Peterson


--

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
SumIF - problem with Criteria qwerty Excel Worksheet Functions 3 May 23rd 06 01:27 AM
Problem with SUMIF criteria Kimhull Excel Discussion (Misc queries) 5 February 1st 06 06:37 PM
SUMIF with two criteria?? Potatosalad2 Excel Discussion (Misc queries) 3 October 25th 05 09:59 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
sumif with 2 criteria Jamie Excel Worksheet Functions 2 November 11th 04 04:48 PM


All times are GMT +1. The time now is 02:00 AM.

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"