Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Help with cells contents sum

Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Help with cells contents sum

Try this.
=SUMPRODUCT(--(sheet!$D$2:$D$1191="DO"), --(sheet!$V$2:$V$1191="DI Leader"))

Change the word SHEET to the tab/sheet name you are referencing from.
Hope this helps.
--
Miss Kitty


"Nanou" wrote:

Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Help with cells contents sum

Miss Kitty,

It did not work. returning value of "0". Thanks though!

"Miss Kitty" wrote:

Try this.
=SUMPRODUCT(--(sheet!$D$2:$D$1191="DO"), --(sheet!$V$2:$V$1191="DI Leader"))

Change the word SHEET to the tab/sheet name you are referencing from.
Hope this helps.
--
Miss Kitty


"Nanou" wrote:

Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Help with cells contents sum

Hi

Try
=SUMPRODUCT(--(ISNUMBER(FIND("DO",A1:A100))))
Change range to suit.









































































































--
Regards
Roger Govier

"Nanou" wrote in message
...
Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Help with cells contents sum

Hi

Try
=SUMPRODUCT(--(ISNUMBER(FIND("DO",A1:A100))))
Change range to suit

It might be better to put the "DO" or "DI" in a cell e.g. in C1 , then you
can just use the formula
=SUMPRODUCT(--(ISNUMBER(FIND(C1,A1:A100))))


--
Regards
Roger Govier

"Nanou" wrote in message
...
Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Help with cells contents sum

Hi Roger,

Thanks for your help. But as I said I already used the formula and what
happened is that it is bringing me a wronge count. I explain:
Based on the example I posted in my original message it will give me " 2 "
as result for my " DO " count , where it should be " 3" (number of actual
"DO" )

Thanks for any help!



the following result for "do" my example
"Roger Govier" wrote:

Hi

Try
=SUMPRODUCT(--(ISNUMBER(FIND("DO",A1:A100))))
Change range to suit

It might be better to put the "DO" or "DI" in a cell e.g. in C1 , then you
can just use the formula
=SUMPRODUCT(--(ISNUMBER(FIND(C1,A1:A100))))


--
Regards
Roger Govier

"Nanou" wrote in message
...
Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Help with cells contents sum

=SUM(LEFT(A1),LEFT(A2))*1

Returns 3


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 09:35:02 -0700, Nanou
wrote:

Hi Roger,

Thanks for your help. But as I said I already used the formula and what
happened is that it is bringing me a wronge count. I explain:
Based on the example I posted in my original message it will give me " 2 "
as result for my " DO " count , where it should be " 3" (number of actual
"DO" )

Thanks for any help!



the following result for "do" my example
"Roger Govier" wrote:

Hi

Try
=SUMPRODUCT(--(ISNUMBER(FIND("DO",A1:A100))))
Change range to suit

It might be better to put the "DO" or "DI" in a cell e.g. in C1 , then you
can just use the formula
=SUMPRODUCT(--(ISNUMBER(FIND(C1,A1:A100))))


--
Regards
Roger Govier

"Nanou" wrote in message
...
Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Help with cells contents sum

Gord,

what is that * 1 for ?

"Gord Dibben" wrote:

=SUM(LEFT(A1),LEFT(A2))*1

Returns 3


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 09:35:02 -0700, Nanou
wrote:

Hi Roger,

Thanks for your help. But as I said I already used the formula and what
happened is that it is bringing me a wronge count. I explain:
Based on the example I posted in my original message it will give me " 2 "
as result for my " DO " count , where it should be " 3" (number of actual
"DO" )

Thanks for any help!



the following result for "do" my example
"Roger Govier" wrote:

Hi

Try
=SUMPRODUCT(--(ISNUMBER(FIND("DO",A1:A100))))
Change range to suit

It might be better to put the "DO" or "DI" in a cell e.g. in C1 , then you
can just use the formula
=SUMPRODUCT(--(ISNUMBER(FIND(C1,A1:A100))))


--
Regards
Roger Govier

"Nanou" wrote in message
...
Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Help with cells contents sum

Just in case the formula returns text.

The *1 changes it back to a usable numeric.

Not necessary in this case.............just me out of habit<g


Gord


On Tue, 26 Aug 2008 11:54:06 -0700, Nanou
wrote:

Gord,

what is that * 1 for ?

"Gord Dibben" wrote:

=SUM(LEFT(A1),LEFT(A2))*1

Returns 3


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 09:35:02 -0700, Nanou
wrote:

Hi Roger,

Thanks for your help. But as I said I already used the formula and what
happened is that it is bringing me a wronge count. I explain:
Based on the example I posted in my original message it will give me " 2 "
as result for my " DO " count , where it should be " 3" (number of actual
"DO" )

Thanks for any help!



the following result for "do" my example
"Roger Govier" wrote:

Hi

Try
=SUMPRODUCT(--(ISNUMBER(FIND("DO",A1:A100))))
Change range to suit

It might be better to put the "DO" or "DI" in a cell e.g. in C1 , then you
can just use the formula
=SUMPRODUCT(--(ISNUMBER(FIND(C1,A1:A100))))


--
Regards
Roger Govier

"Nanou" wrote in message
...
Here is a sample of my column cells contents:

2DO, 5DI (this data is in one cell)
1DO, 2DI
AI
AO

I need to get a total of "DO", total of "DI" ...etc. separately
I have tried countif, sumproduct...but not getting the right result!

Would appreciate any help.
Yasmina





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
How to Split the contents of cells across multiple cells anna New Users to Excel 5 May 29th 08 02:47 PM
compare the contents of one range of cells with the contents of a. Dozy123 Excel Discussion (Misc queries) 1 January 24th 07 10:14 AM
Contents in cells Mike Busch Excel Discussion (Misc queries) 1 December 1st 06 02:26 AM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 06:39 PM
how do populate empty cells with the contents of populated cells . Jim99 Excel Discussion (Misc queries) 6 April 21st 05 05:44 PM


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

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

About Us

"It's about Microsoft Excel"