Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ken
 
Posts: n/a
Default Sumproduct ... Empty Cells vs Spaces?

Excel 2000 ... I have data I copy/paste to Excel from an
Access query (I know nothing about Access so I munipulate
data in Excel) ... My data consist of 40 columns by 10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns (you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells with "spaces" ...
(at least I assume "spaces" because they appear empty, but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to accommodate
conditions for those 3 Columns that contain data, &/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha

  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
you may post your current formula. As an initial idea: use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im Newsbeitrag
...
Excel 2000 ... I have data I copy/paste to Excel from an
Access query (I know nothing about Access so I munipulate
data in Excel) ... My data consist of 40 columns by 10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns (you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells with "spaces" ...
(at least I assume "spaces" because they appear empty, but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to accommodate
conditions for those 3 Columns that contain data, &/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



  #3   Report Post  
Ken
 
Posts: n/a
Default

Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) & 2 Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2 other
conditions (for Cols H & L) where Col contains data, empty
cells (or spaces) & I wish empty cells or spaces to be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial idea:

use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Excel 2000 ... I have data I copy/paste to Excel from an
Access query (I know nothing about Access so I

munipulate
data in Excel) ... My data consist of 40 columns by

10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns (you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells with "spaces" ...
(at least I assume "spaces" because they appear empty,

but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to

accommodate
conditions for those 3 Columns that contain data, &/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



.

  #4   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
do you mean:
=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)*(TRIM($H$2:$H$ 12000)=""))*(TRIM($L$2:$L$12000)="")))

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im Newsbeitrag
...
Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) & 2 Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2 other
conditions (for Cols H & L) where Col contains data, empty
cells (or spaces) & I wish empty cells or spaces to be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial idea:

use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Excel 2000 ... I have data I copy/paste to Excel from an
Access query (I know nothing about Access so I

munipulate
data in Excel) ... My data consist of 40 columns by

10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns (you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells with "spaces" ...
(at least I assume "spaces" because they appear empty,

but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to

accommodate
conditions for those 3 Columns that contain data, &/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



.



  #5   Report Post  
Ken
 
Posts: n/a
Default

Frank ... OK Shoot me, but my knowledge of Excel (or lack
of it) is limited to hacking only ... & though I use the
double "" often I often have issue with understanding how
Excel is interpreting the Cell containing the double
quote "" (empty cell, space or other?)...

Now ... if a double quote "" equates to an empty cell then
when a single cell is being evaluated by the piece of your
formula extracted below:

*(TRIM($H$2:$H$12000)=""))

Does this equate to ... TRIM cell (remove spaces) ... once
done ... if remainder is an EMPTY cell (the double
quote "") ... TRUE? ... Otherwise FALSE because there
would be visible data remaining in the cell???

Am I anywhere close???

Thanks for sticking with me as I already see this as a
valuable function ... Kha



-----Original Message-----
Hi
do you mean:
=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$B G2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)*(TRIM($H$2:$H $12000)

=""))*(TRIM($L$2:$L$12000)="")))

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) & 2

Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2

other
conditions (for Cols H & L) where Col contains data,

empty
cells (or spaces) & I wish empty cells or spaces to be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial idea:

use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
.. .
Excel 2000 ... I have data I copy/paste to Excel from

an
Access query (I know nothing about Access so I

munipulate
data in Excel) ... My data consist of 40 columns by

10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns

(you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells

with "spaces" ...
(at least I assume "spaces" because they appear empty,

but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to

accommodate
conditions for those 3 Columns that contain data, &/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



.



.



  #6   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
""
would return for all cells that are either
- completely empty
- or contain only a zero length string

The secopnd one would be true if for example the cell contains a formula
which returns "". e.g. the false part of the following IF statement
=IF(A1=1,A1,"")

Also if the TRIM function returns an empty string the formula part would
evaluate to TRUE

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im Newsbeitrag
...
Frank ... OK Shoot me, but my knowledge of Excel (or lack
of it) is limited to hacking only ... & though I use the
double "" often I often have issue with understanding how
Excel is interpreting the Cell containing the double
quote "" (empty cell, space or other?)...

Now ... if a double quote "" equates to an empty cell then
when a single cell is being evaluated by the piece of your
formula extracted below:

*(TRIM($H$2:$H$12000)=""))

Does this equate to ... TRIM cell (remove spaces) ... once
done ... if remainder is an EMPTY cell (the double
quote "") ... TRUE? ... Otherwise FALSE because there
would be visible data remaining in the cell???

Am I anywhere close???

Thanks for sticking with me as I already see this as a
valuable function ... Kha



-----Original Message-----
Hi
do you mean:
=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$ BG2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)*(TRIM($H$2:$ H$12000)

=""))*(TRIM($L$2:$L$12000)="")))

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) & 2

Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2

other
conditions (for Cols H & L) where Col contains data,

empty
cells (or spaces) & I wish empty cells or spaces to be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial idea:
use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im
Newsbeitrag
. ..
Excel 2000 ... I have data I copy/paste to Excel from

an
Access query (I know nothing about Access so I
munipulate
data in Excel) ... My data consist of 40 columns by
10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns

(you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells

with "spaces" ...
(at least I assume "spaces" because they appear empty,
but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to
accommodate
conditions for those 3 Columns that contain data, &/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



.



.



  #7   Report Post  
Ken
 
Posts: n/a
Default

Frank ...

Zero length string ... What is this? Based on your last
post I am assuming the cell is not empty, but contents not
visible either ... What would be an example of this ... &
would the "space" be an example???

Thanks for the Education ... Kha


-----Original Message-----
Hi
""
would return for all cells that are either
- completely empty
- or contain only a zero length string

The secopnd one would be true if for example the cell

contains a formula
which returns "". e.g. the false part of the following IF

statement
=IF(A1=1,A1,"")

Also if the TRIM function returns an empty string the

formula part would
evaluate to TRUE

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Frank ... OK Shoot me, but my knowledge of Excel (or

lack
of it) is limited to hacking only ... & though I use the
double "" often I often have issue with understanding

how
Excel is interpreting the Cell containing the double
quote "" (empty cell, space or other?)...

Now ... if a double quote "" equates to an empty cell

then
when a single cell is being evaluated by the piece of

your
formula extracted below:

*(TRIM($H$2:$H$12000)=""))

Does this equate to ... TRIM cell (remove spaces) ...

once
done ... if remainder is an EMPTY cell (the double
quote "") ... TRUE? ... Otherwise FALSE because there
would be visible data remaining in the cell???

Am I anywhere close???

Thanks for sticking with me as I already see this as a
valuable function ... Kha



-----Original Message-----
Hi
do you mean:
=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000= $BG2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)*(TRIM($H$2: $H$12000)

=""))*(TRIM($L$2:$L$12000)="")))

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
.. .
Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) & 2

Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2

other
conditions (for Cols H & L) where Col contains data,

empty
cells (or spaces) & I wish empty cells or spaces to be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial idea:
use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im
Newsbeitrag
.. .
Excel 2000 ... I have data I copy/paste to Excel

from
an
Access query (I know nothing about Access so I
munipulate
data in Excel) ... My data consist of 40 columns by
10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns

(you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells

with "spaces" ...
(at least I assume "spaces" because they appear

empty,
but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE

when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to
accommodate
conditions for those 3 Columns that contain data,

&/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



.



.



.

  #8   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
no space would not be an example. Enter
=""
in one cell and you have this kind of 'zero length string'. The cells is not
empty. e.g. =ISBLANK(cell_reference) would return FALSE
But
=cell_reference=""
will return TRUE

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im Newsbeitrag
...
Frank ...

Zero length string ... What is this? Based on your last
post I am assuming the cell is not empty, but contents not
visible either ... What would be an example of this ... &
would the "space" be an example???

Thanks for the Education ... Kha


-----Original Message-----
Hi
""
would return for all cells that are either
- completely empty
- or contain only a zero length string

The secopnd one would be true if for example the cell

contains a formula
which returns "". e.g. the false part of the following IF

statement
=IF(A1=1,A1,"")

Also if the TRIM function returns an empty string the

formula part would
evaluate to TRUE

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Frank ... OK Shoot me, but my knowledge of Excel (or

lack
of it) is limited to hacking only ... & though I use the
double "" often I often have issue with understanding

how
Excel is interpreting the Cell containing the double
quote "" (empty cell, space or other?)...

Now ... if a double quote "" equates to an empty cell

then
when a single cell is being evaluated by the piece of

your
formula extracted below:

*(TRIM($H$2:$H$12000)=""))

Does this equate to ... TRIM cell (remove spaces) ...

once
done ... if remainder is an EMPTY cell (the double
quote "") ... TRUE? ... Otherwise FALSE because there
would be visible data remaining in the cell???

Am I anywhere close???

Thanks for sticking with me as I already see this as a
valuable function ... Kha



-----Original Message-----
Hi
do you mean:
=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000 =$BG2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)*(TRIM($H$2 :$H$12000)
=""))*(TRIM($L$2:$L$12000)="")))

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im
Newsbeitrag
. ..
Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) & 2
Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2
other
conditions (for Cols H & L) where Col contains data,
empty
cells (or spaces) & I wish empty cells or spaces to be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial idea:
use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im
Newsbeitrag
. ..
Excel 2000 ... I have data I copy/paste to Excel

from
an
Access query (I know nothing about Access so I
munipulate
data in Excel) ... My data consist of 40 columns by
10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns
(you
just gotta love this function).

3 Columns contain all data while the other 3 Columns
contain Data &/or empty cells or cells
with "spaces" ...
(at least I assume "spaces" because they appear

empty,
but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE

when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to
accommodate
conditions for those 3 Columns that contain data,

&/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of this
function ... Kha



.



.



.



  #9   Report Post  
Ken
 
Posts: n/a
Default

Frank ...

I know this has been a relatively long thread, but I have
gotten an education from this today & hopefully, a few
others have as well. SUMPRODUCT is a great function.

Above said ... My Thanks ... This is one Excel user that
sincerely appreciates the knowledge & support that you,
other MVPs, & the general Excel population of Users bring
to these boards ... Kha


-----Original Message-----
Hi
no space would not be an example. Enter
=""
in one cell and you have this kind of 'zero length

string'. The cells is not
empty. e.g. =ISBLANK(cell_reference) would return FALSE
But
=cell_reference=""
will return TRUE

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
...
Frank ...

Zero length string ... What is this? Based on your last
post I am assuming the cell is not empty, but contents

not
visible either ... What would be an example of this ...

&
would the "space" be an example???

Thanks for the Education ... Kha


-----Original Message-----
Hi
""
would return for all cells that are either
- completely empty
- or contain only a zero length string

The secopnd one would be true if for example the cell

contains a formula
which returns "". e.g. the false part of the following

IF
statement
=IF(A1=1,A1,"")

Also if the TRIM function returns an empty string the

formula part would
evaluate to TRUE

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im

Newsbeitrag
.. .
Frank ... OK Shoot me, but my knowledge of Excel (or

lack
of it) is limited to hacking only ... & though I use

the
double "" often I often have issue with understanding

how
Excel is interpreting the Cell containing the double
quote "" (empty cell, space or other?)...

Now ... if a double quote "" equates to an empty cell

then
when a single cell is being evaluated by the piece of

your
formula extracted below:

*(TRIM($H$2:$H$12000)=""))

Does this equate to ... TRIM cell (remove spaces) ...

once
done ... if remainder is an EMPTY cell (the double
quote "") ... TRUE? ... Otherwise FALSE because there
would be visible data remaining in the cell???

Am I anywhere close???

Thanks for sticking with me as I already see this as a
valuable function ... Kha



-----Original Message-----
Hi
do you mean:
=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$1200 0=$BG2)*
($T$2:$T$12000=1)*($AL$2:$AL$12000)*(TRIM

($H$2:$H$12000)
=""))*(TRIM($L$2:$L$12000)="")))

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb im
Newsbeitrag
.. .
Good morning Frank ... Previous post from
approximations ... this post more specific.

I wish to test 5 conditions ... 3 Cols (all data) &

2
Cols
(with data, empty cells, or spaces)

My present formula:

=IF(ISBLANK($BG2),"",SUMPRODUCT(($M$2:$M$12000=$BG 2)

*
($T$2:$T$12000=1)*($AL$2:$AL$12000)))

Above working fine ... However, I wish to add the 2
other
conditions (for Cols H & L) where Col contains data,
empty
cells (or spaces) & I wish empty cells or spaces to

be
TRUE (or NON-BLANK to be False):

How do I incorporate this into formula above?

Thanks ... Kha






-----Original Message-----
Hi
you may post your current formula. As an initial

idea:
use TRIM on the
ranges

--
Regards
Frank Kabel
Frankfurt, Germany
"Ken" schrieb

im
Newsbeitrag
...
Excel 2000 ... I have data I copy/paste to Excel

from
an
Access query (I know nothing about Access so I
munipulate
data in Excel) ... My data consist of 40 columns

by
10,000
rows.

I am using SUMPRODUCT to compare data in 6 Columns
(you
just gotta love this function).

3 Columns contain all data while the other 3

Columns
contain Data &/or empty cells or cells
with "spaces" ...
(at least I assume "spaces" because they appear

empty,
but
are not empty.)

Above said ... I want SUMPRODUCT to only be TRUE

when
there is data in all 6 Columns ...

So, how do I best write SUMPRODUCT formula to
accommodate
conditions for those 3 Columns that contain data,

&/or
empty cells &/or "spaces"?

Thanks ... I am really enjoying the benefits of

this
function ... Kha



.



.



.



.

  #10   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
thanks for your thanks and comments :-)

--
Regards
Frank Kabel
Frankfurt, Germany

Ken wrote:
Frank ...

I know this has been a relatively long thread, but I have
gotten an education from this today & hopefully, a few
others have as well. SUMPRODUCT is a great function.

Above said ... My Thanks ... This is one Excel user that
sincerely appreciates the knowledge & support that you,
other MVPs, & the general Excel population of Users bring
to these boards ... Kha



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
Trendlines to ignore empty cells Hoochi Coochi Man Charts and Charting in Excel 7 January 14th 05 01:31 PM
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM
linking cells in Excel 2003. How to not truncate to 255 characters. GarryFerg Excel Discussion (Misc queries) 5 December 8th 04 03:33 PM
Empty Cells, Spaces, Cond Format? Ken Excel Discussion (Misc queries) 3 December 4th 04 04:47 PM
empty cells in ranges UniDave Excel Discussion (Misc queries) 2 November 26th 04 02:18 AM


All times are GMT +1. The time now is 03:30 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"