Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Formulas only calculate a result when there is matching data in ce

I have the following formulas setup gratefully received from microsoft online
members. These work perfect for what I need them for

=DATE(YEAR($C2),MONTH($C2)+3,DAY($C2)-1)
=SUMPRODUCT(($B3:$B7<D2)*($C3:$C7<D$1))

What I need is to add the above formulas inside other formulas so that they
only calculate where cells are the same. I only want to enter this formula
once at the top of the sheet and be able to copy it down the sheet.

Example
If cells
A2= 1 the above formulas will calculate because cells A2:A4 = 1
A3= 1
A4= 1
A5= 2 no calculations (blank cells) will be used as there is only one entry
of 2
A6= 3 the above formulas will calculate because cells A6:A10 = 3
A7= 3
A8= 3
A9= 3
A10=3
etc...
Any help appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Formulas only calculate a result when there is matching data in ce

Hi Mally,

You might add the following:

=IF(COUNTIF(A$1:A$1000,A1)1,yourformula,"")

Cheers,
Shane Devenshire
Microsoft Excel MVP

"Mally" wrote in message
...
I have the following formulas setup gratefully received from microsoft
online
members. These work perfect for what I need them for

=DATE(YEAR($C2),MONTH($C2)+3,DAY($C2)-1)
=SUMPRODUCT(($B3:$B7<D2)*($C3:$C7<D$1))

What I need is to add the above formulas inside other formulas so that
they
only calculate where cells are the same. I only want to enter this
formula
once at the top of the sheet and be able to copy it down the sheet.

Example
If cells
A2= 1 the above formulas will calculate because cells A2:A4 = 1
A3= 1
A4= 1
A5= 2 no calculations (blank cells) will be used as there is only one
entry
of 2
A6= 3 the above formulas will calculate because cells A6:A10 = 3
A7= 3
A8= 3
A9= 3
A10=3
etc...
Any help appreciated


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Formulas only calculate a result when there is matching data i

Thanks Shane

When I add your formula i need my formula to change

e.g. if cells A1:A10 all contain the same number then

=IF(COUNTIF(A$1:A$1000,A1)1,SUMPRODUCT(($B3:$B10< D2)*($C3:$C10<D$1)),"")

It's hard to explain without showing you my file.

Thanks for your help

"Shane Devenshire" wrote:

Hi Mally,

You might add the following:

=IF(COUNTIF(A$1:A$1000,A1)1,yourformula,"")

Cheers,
Shane Devenshire
Microsoft Excel MVP

"Mally" wrote in message
...
I have the following formulas setup gratefully received from microsoft
online
members. These work perfect for what I need them for

=DATE(YEAR($C2),MONTH($C2)+3,DAY($C2)-1)
=SUMPRODUCT(($B3:$B7<D2)*($C3:$C7<D$1))

What I need is to add the above formulas inside other formulas so that
they
only calculate where cells are the same. I only want to enter this
formula
once at the top of the sheet and be able to copy it down the sheet.

Example
If cells
A2= 1 the above formulas will calculate because cells A2:A4 = 1
A3= 1
A4= 1
A5= 2 no calculations (blank cells) will be used as there is only one
entry
of 2
A6= 3 the above formulas will calculate because cells A6:A10 = 3
A7= 3
A8= 3
A9= 3
A10=3
etc...
Any help appreciated



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
Formulas to calculate only when data is populated. ispy4mi6 Excel Worksheet Functions 2 February 23rd 07 07:43 PM
Auto calculate formulas when new data is entered Cam1234 Excel Discussion (Misc queries) 6 February 15th 07 05:30 PM
How do I calculate formulas for yes/no data How to calculate yes/no formulas Excel Worksheet Functions 1 February 23rd 06 02:55 PM
Count or result of matching cells ah666 Excel Worksheet Functions 6 September 9th 05 10:01 PM
Will not calculate average/median formulas;acts like no data in c. Frustrated User of Excel today Excel Worksheet Functions 3 December 9th 04 05:31 PM


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