Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Need two different data types to give me a total

I'm not an Excel expert, but I'm pretty sure there's a formula for what I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need two different data types to give me a total

Hi,

Try this

=sumproduct(($D$2:$D$30="x")*($G$2:$G$30<""))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"silk723" wrote in message
...
I'm not an Excel expert, but I'm pretty sure there's a formula for what I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need two different data types to give me a total

Try one of these...

Excel 2007 only:

=COUNTIFS(D2:D30,"x",G2:G30,"<")

Any version of Excel:

=SUMPRODUCT(--(D2:D30="x"),--(G2:G30<""))

--
Biff
Microsoft Excel MVP


"silk723" wrote in message
...
I'm not an Excel expert, but I'm pretty sure there's a formula for what I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Need two different data types to give me a total

Perfect!!! Thank you very much!
--
twc


"Ashish Mathur" wrote:

Hi,

Try this

=sumproduct(($D$2:$D$30="x")*($G$2:$G$30<""))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"silk723" wrote in message
...
I'm not an Excel expert, but I'm pretty sure there's a formula for what I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need two different data types to give me a total

You are welcome

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"silk723" wrote in message
...
Perfect!!! Thank you very much!
--
twc


"Ashish Mathur" wrote:

Hi,

Try this

=sumproduct(($D$2:$D$30="x")*($G$2:$G$30<""))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"silk723" wrote in message
...
I'm not an Excel expert, but I'm pretty sure there's a formula for what
I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Need two different data types to give me a total

I spoke too soon... :-(

The formula that Ashish provided worked, but there is a teeny problem - it's
giving me the total, minus one. My total should be 34, it's coming out 33.
I've checked all cells to make sure something wasn't hiding that I didn't
see, but nothing was there. Any idea as to what might cause the undercount?

Here's my formula:

="Total Number of Systems: "&SUMPRODUCT(($D$4:$D$58="ü")*($G$4:$G$58<"" ))

--
twc


"T. Valko" wrote:

Try one of these...

Excel 2007 only:

=COUNTIFS(D2:D30,"x",G2:G30,"<")

Any version of Excel:

=SUMPRODUCT(--(D2:D30="x"),--(G2:G30<""))

--
Biff
Microsoft Excel MVP


"silk723" wrote in message
...
I'm not an Excel expert, but I'm pretty sure there's a formula for what I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc



.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Need two different data types to give me a total

Ignore the question...I found the problem. The wetware can't count... :-)
--
twc


"silk723" wrote:

I spoke too soon... :-(

The formula that Ashish provided worked, but there is a teeny problem - it's
giving me the total, minus one. My total should be 34, it's coming out 33.
I've checked all cells to make sure something wasn't hiding that I didn't
see, but nothing was there. Any idea as to what might cause the undercount?

Here's my formula:

="Total Number of Systems: "&SUMPRODUCT(($D$4:$D$58="ü")*($G$4:$G$58<"" ))

--
twc


"T. Valko" wrote:

Try one of these...

Excel 2007 only:

=COUNTIFS(D2:D30,"x",G2:G30,"<")

Any version of Excel:

=SUMPRODUCT(--(D2:D30="x"),--(G2:G30<""))

--
Biff
Microsoft Excel MVP


"silk723" wrote in message
...
I'm not an Excel expert, but I'm pretty sure there's a formula for what I
need to obtain a total.

I need to determine what my total (count?) would be if d2:d30="x" and
g2:g30=not blank.

Can anyone help me determine the formula to get this total?

Thanks in advance.

--
twc



.

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
Function to add 3 column (of YES) to give a total % complete preyesone Excel Worksheet Functions 7 June 30th 09 07:59 PM
Excel 2007 error "some chart types cannot be combined with other chart types. Select a different chart types" roadsidetree Charts and Charting in Excel 15 June 2nd 09 10:53 AM
If the total = between 17-20 give it a score of 5, and so on Heather Excel Discussion (Misc queries) 3 May 25th 07 09:59 PM
want a formula give total quanitity break up frm other sheet Aristotle Excel Worksheet Functions 1 June 23rd 06 09:01 AM
calculate which cells in column A will give me the total of column Ken Excel Worksheet Functions 4 January 6th 05 06:25 AM


All times are GMT +1. The time now is 12:07 AM.

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"