Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How do I do several formulas in one cell?

I am in the process of trying to get this formula to work.
=IF(C80,200,0)*OR(C8<3,200,0)*OR(C8=3,350)*AND(C8 3,350)*OR(C8<5,350)*OR(C85,500)*OR(C8=5,500)

For example I am trying to figure times. So greater than 0 and less than 3
= 200 plus equal to 3, greater than 3 and less than 5 = 350, great than 5 =
500.

For some reason it's just calculating the first formula for 200. Can anyone
please help with this?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default How do I do several formulas in one cell?

See if this does what you're looking for:

=IF(C8=5,500,IF(C8=3,350,IF(C8=0,200,0)))

HTH,
Elkar


"imktew" wrote:

I am in the process of trying to get this formula to work.
=IF(C80,200,0)*OR(C8<3,200,0)*OR(C8=3,350)*AND(C8 3,350)*OR(C8<5,350)*OR(C85,500)*OR(C8=5,500)

For example I am trying to figure times. So greater than 0 and less than 3
= 200 plus equal to 3, greater than 3 and less than 5 = 350, great than 5 =
500.

For some reason it's just calculating the first formula for 200. Can anyone
please help with this?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default How do I do several formulas in one cell?

In this case you can use the following formula
=200*(C80)+150*(C83)+150*(C85)

On a side note, you are using AND and OR incorrectly. The following formula
will also do what you describe.

=IF(C8<=0,0,IF(AND(C80,C8<=3),200,IF(AND(C83,C8< =5),350,IF(C85,500))))

of course it can be simplified to what has already been offered (with a
slight modification) to this

=IF(C85,500,IF(C83,350,IF(C80,200,0)))
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How do I do several formulas in one cell?

It all worked except for the=0,200 - It put in 200 and it should have been 0.
THANKS!

"Elkar" wrote:

See if this does what you're looking for:

=IF(C8=5,500,IF(C8=3,350,IF(C8=0,200,0)))

HTH,
Elkar


"imktew" wrote:

I am in the process of trying to get this formula to work.
=IF(C80,200,0)*OR(C8<3,200,0)*OR(C8=3,350)*AND(C8 3,350)*OR(C8<5,350)*OR(C85,500)*OR(C8=5,500)

For example I am trying to figure times. So greater than 0 and less than 3
= 200 plus equal to 3, greater than 3 and less than 5 = 350, great than 5 =
500.

For some reason it's just calculating the first formula for 200. Can anyone
please help with this?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How do I do several formulas in one cell?

OH, THIS IS GREAT! It WORKED! THANK U, THANK U, THANK U Very Much!


"Sloth" wrote:

In this case you can use the following formula
=200*(C80)+150*(C83)+150*(C85)

On a side note, you are using AND and OR incorrectly. The following formula
will also do what you describe.

=IF(C8<=0,0,IF(AND(C80,C8<=3),200,IF(AND(C83,C8< =5),350,IF(C85,500))))

of course it can be simplified to what has already been offered (with a
slight modification) to this

=IF(C85,500,IF(C83,350,IF(C80,200,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
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
Cell Formulas BRustigian Excel Discussion (Misc queries) 2 August 1st 06 09:15 AM
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 08:45 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"