Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
smorgan
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet

I have a spreadsheet with multiple columns. I am trying to create a formula
that would return a count for the number of values in column A that has the
same value I am looking for in column E.

The formula that I thought would be if(e4:e1000="FL1",countif(A4:a100,a4),0)

Any ideas....
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet


SUMPRODUCT should work. Try this,

=SUMPRODUCT((A4:A1000=A4)*(E4:E1000="FL1"))

The ranges need to be the same size.

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=516341

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
WCoaster
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet

Extremely creative solution. Thanks, I am sure I will be able to use that
somewhere soon.

"SteveG" wrote:


SUMPRODUCT should work. Try this,

=SUMPRODUCT((A4:A1000=A4)*(E4:E1000="FL1"))

The ranges need to be the same size.

Cheers,

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=516341


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
WCoaster
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet

The formula would be:
=COUNTIF(A4:A1000,E1)

This would count all the incidence of E1 in A1:A1000. Likewise you could
copy this formula beside every unique value in Column E.


"smorgan" wrote:

I have a spreadsheet with multiple columns. I am trying to create a formula
that would return a count for the number of values in column A that has the
same value I am looking for in column E.

The formula that I thought would be if(e4:e1000="FL1",countif(A4:a100,a4),0)

Any ideas....

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
smorgan
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet

Thanks for the response. I may have not been real clear. I am looking to
count all of instances of say "John Deere" in Column A that have the value of
"FL" in Column E.

WCoaster wrote:
The formula would be:
=COUNTIF(A4:A1000,E1)

This would count all the incidence of E1 in A1:A1000. Likewise you could
copy this formula beside every unique value in Column E.

I have a spreadsheet with multiple columns. I am trying to create a formula
that would return a count for the number of values in column A that has the

[quoted text clipped - 3 lines]

Any ideas....



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet


The SUMPRODUCT will work.

=SUMPRODUCT((A4:A1000="John Deere")*(E4:E1000="FL"))

This counts the number of times that a cell in column A = John Deere
where the corresponding cell in column E contains "FL".

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=516341

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sudhi
 
Posts: n/a
Default Formula for counting multiple variables in a spreadsheet

Dear Sir/Madam

I have just started MS Excel and VBA so If u have got any source
material plz send this mail id


yours

sudhir

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
Percentage formula in Excel spreadsheet Rick New Users to Excel 5 November 10th 08 04:30 AM
Copying a formula to multiple worksheets RobHan Excel Worksheet Functions 1 February 16th 06 05:21 PM
Can't find formula for largest value in multiple cells telewats New Users to Excel 5 January 9th 06 07:26 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


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