Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Combining Formulas

These three formulas need to be combined into a single formula:

1.) =IF(D7E7,D7*H7) D7 greater than E7
Or (could these two be combined?)
2.) =IF(D7=E7,D7*H7) D7 equal to E7
Or
3.) =IF(D7<E7,((D7-E7)+(D7*H7))) D7 less than E7

Then the single formula will be used (copied) into the 90 rows below row 7.

Would this be better done with VBA in a module?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Combining Formulas

Phil,
=IF(D7=E7,D7*H7,(D7-E7)+(D7*H7))

NickHK

"Phil H" wrote in message
...
These three formulas need to be combined into a single formula:

1.) =IF(D7E7,D7*H7) D7 greater than E7
Or (could these two be combined?)
2.) =IF(D7=E7,D7*H7) D7 equal to E7
Or
3.) =IF(D7<E7,((D7-E7)+(D7*H7))) D7 less than E7

Then the single formula will be used (copied) into the 90 rows below row

7.

Would this be better done with VBA in a module?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Combining Formulas


Phil H wrote:
These three formulas need to be combined into a single formula:

1.) =IF(D7E7,D7*H7) D7 greater than E7
Or (could these two be combined?)
2.) =IF(D7=E7,D7*H7) D7 equal to E7
Or
3.) =IF(D7<E7,((D7-E7)+(D7*H7))) D7 less than E7

Then the single formula will be used (copied) into the 90 rows below row 7.

Would this be better done with VBA in a module?


VBA is not necessary, I think:
=D7*H7+MIN(D7-E7,0)

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
Combining formulas carol Excel Discussion (Misc queries) 8 July 22nd 09 04:01 PM
Help with combining 2 formulas Ilse Excel Discussion (Misc queries) 5 August 20th 07 05:05 PM
Combining formulas Krista Excel Discussion (Misc queries) 11 June 27th 06 03:13 AM
Combining two formulas edwardpestian Excel Worksheet Functions 4 June 4th 06 10:23 AM
Combining formulas jezzica85 Excel Discussion (Misc queries) 5 March 3rd 06 06:56 AM


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