Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 390
Default Two formulas in one cell

I want these two formulas in cell B2.
1. When cell C4 < 28701 I want to use this - (O73*(0.25)-3905)/13*2-PR.1!O75.
2. When cell C4 28700 I want to use use - (O73*(0.35)-6775)/13*2-PR.1!O75


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Two formulas in one cell

So, what id C4 is 28700.5? Then both conditions are met. And what if C4
=28702? Or 28699?
Are you sure you don't mean something else?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"MAX" wrote in message
...
I want these two formulas in cell B2.
1. When cell C4 < 28701 I want to use this -
(O73*(0.25)-3905)/13*2-PR.1!O75.
2. When cell C4 28700 I want to use use -
(O73*(0.35)-6775)/13*2-PR.1!O75



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Two formulas in one cell

As stated the answer is

=IF(C4<28701,(O73*0.25-3905)/26-PR.1!O75,IF(C428700,(O73*0.35-6775)/26-PR.1!O75,""))

However, I suggest you hand calculate the result and verify that the logic
of the Excel formula matches the desired result, because there are a number
of issues here. First something can be less than 28701 AND greater than
28700 are the same time - 28700.5. Second, the operation -PR.1!O75 occurs
after the division, so if you want it in the numerator this formula won't do
it.

I removed a couple of unnecessary parenthesis.

If the numbers are integers then the above can be written
=IF(C4<28701,(O73*0.25-3905)/26-PR.1!O75,(O73*0.35-6775)/26-PR.1!O75)
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"MAX" wrote:

I want these two formulas in cell B2.
1. When cell C4 < 28701 I want to use this - (O73*(0.25)-3905)/13*2-PR.1!O75.
2. When cell C4 28700 I want to use use - (O73*(0.35)-6775)/13*2-PR.1!O75


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
Carrying formulas over to new cell when old cell is deleted: possi Karl Excel Worksheet Functions 0 June 24th 08 01:10 PM
CLICK CELL, GO TO ANOTHER CELL. NO FORMULAS. Patty Excel Discussion (Misc queries) 3 February 26th 07 11:50 PM
How to trace a cell? Which cells use a special cell in formulas? SupperDuck Excel Discussion (Misc queries) 4 December 1st 06 04:17 PM
Copying formulas from cell to cell to cell to....... Tom Hardy Excel Discussion (Misc queries) 3 June 15th 06 03:29 PM
change cell value greater than another cell value using formulas Unsure? Excel Worksheet Functions 2 April 2nd 06 10:24 PM


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