Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default subtract one cell from each cell in a range and count instances

I want to subtract a singel cell value from a range of cells. For each cell
in the range I want to count the instances of when that cell minus the single
cell is greater than 30.

I am subtracting two date to get the number of days between the two. If that
is greater than 30 I want to count it. The first date is a single date. I
want to subtract that date from each date in a range. If the difference is
greater than 30, I count it. The result is the count of date differences that
are greater tan 30.

So I have a date in A2. I have a range of dates E:E. I want to count each
instance that A2-E:E30
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default subtract one cell from each cell in a range and count instances

Try
=SUMPRODUCT((A2-E1:E10030)*(E1:E1000))

If this post helps click Yes
---------------
Jacob Skaria


"tworrall" wrote:

I want to subtract a singel cell value from a range of cells. For each cell
in the range I want to count the instances of when that cell minus the single
cell is greater than 30.

I am subtracting two date to get the number of days between the two. If that
is greater than 30 I want to count it. The first date is a single date. I
want to subtract that date from each date in a range. If the difference is
greater than 30, I count it. The result is the count of date differences that
are greater tan 30.

So I have a date in A2. I have a range of dates E:E. I want to count each
instance that A2-E:E30

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default subtract one cell from each cell in a range and count instances

tworrall wrote:
I want to subtract a singel cell value from a range of cells. For each cell
in the range I want to count the instances of when that cell minus the single
cell is greater than 30.

I am subtracting two date to get the number of days between the two. If that
is greater than 30 I want to count it. The first date is a single date. I
want to subtract that date from each date in a range. If the difference is
greater than 30, I count it. The result is the count of date differences that
are greater tan 30.

So I have a date in A2. I have a range of dates E:E. I want to count each
instance that A2-E:E30



=COUNTIF(E:E,"<"&A2-30)
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
Count Multiple Instances of Text in a Cell dave roth Excel Discussion (Misc queries) 0 January 7th 08 06:48 PM
Count Multiple Instances of Text in a Cell CLR Excel Discussion (Misc queries) 0 January 4th 08 07:56 PM
Count Multiple Instances of Text in a Cell Dave Peterson Excel Discussion (Misc queries) 0 January 4th 08 07:53 PM
Count Multiple Instances of Text in a Cell T. Valko Excel Discussion (Misc queries) 0 January 4th 08 07:50 PM
Count Multiple Instances of Text in a Cell JE McGimpsey Excel Discussion (Misc queries) 0 January 4th 08 07:45 PM


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