Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Multiple conditions to a formula in one cell

I want to be able to create multiple conditions to a formula in one cell. For
example if B2 is "Happy" than the cell should use a certain formula like
o6/e6/175 but if B2 is "sad" than the cell should use formula o6/e6/250. I
want to be able to have lots of formulas to be used with the cells that
correspond to the same row that my final data has to be placed, like if I'm
in cell J3 I need to use B3, O3, E3, and so on.

Any help?

Thanks! Audra
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Multiple conditions to a formula in one cell

Audra,

It could be as easy as this, in cell J3 and then copied down.

=IF(B3="Happy",O3/E3/175,O3/E3/250)

HTH,
Bernie
MS Excel MVP


"Audra" wrote in message
...
I want to be able to create multiple conditions to a formula in one cell. For
example if B2 is "Happy" than the cell should use a certain formula like
o6/e6/175 but if B2 is "sad" than the cell should use formula o6/e6/250. I
want to be able to have lots of formulas to be used with the cells that
correspond to the same row that my final data has to be placed, like if I'm
in cell J3 I need to use B3, O3, E3, and so on.

Any help?

Thanks! Audra



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Multiple conditions to a formula in one cell

=IF(B2="Happy",O6/E6/175,IF(B2="sad",O6/E6/250,""))

If you have many more options, then use a VLOOKUP() table.
--
Gary''s Student - gsnu200808


"Audra" wrote:

I want to be able to create multiple conditions to a formula in one cell. For
example if B2 is "Happy" than the cell should use a certain formula like
o6/e6/175 but if B2 is "sad" than the cell should use formula o6/e6/250. I
want to be able to have lots of formulas to be used with the cells that
correspond to the same row that my final data has to be placed, like if I'm
in cell J3 I need to use B3, O3, E3, and so on.

Any help?

Thanks! Audra

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Multiple conditions to a formula in one cell

Enter this in J2 and copy down...
=IF(B2="Happy",O6/(E6*175),IF(B2="Sad",O6/(E6*250),"Neither happy nor sad"))

You can add another IF if you want...

Looks like only thing which is changing is the divisor (175 or 250...)
If that is the case put Happy and 175 in cells M1 N1, Sad and 250 in M2 N2
and so on and use in J2
=O6/(E6*VLOOKUP(B2,M:N,2,False))

Also if you do not want O6 and E6 to change O7 and E7 then use
O$6 and E$6 in the above formulae...


--
Always provide your feedback so that others know whether the solution worked
or problem still persists ...


"Audra" wrote:

I want to be able to create multiple conditions to a formula in one cell. For
example if B2 is "Happy" than the cell should use a certain formula like
o6/e6/175 but if B2 is "sad" than the cell should use formula o6/e6/250. I
want to be able to have lots of formulas to be used with the cells that
correspond to the same row that my final data has to be placed, like if I'm
in cell J3 I need to use B3, O3, E3, and so on.

Any help?

Thanks! Audra

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
Multiple conditions in formula Ang Excel Worksheet Functions 13 April 16th 07 11:16 PM
Need help on formula with multiple conditions... DiDi Excel Discussion (Misc queries) 11 April 17th 06 05:33 PM
How do I set up a formula with multiple conditions? Fred Borden Excel Discussion (Misc queries) 3 June 9th 05 08:58 PM
Formula for multiple conditions Roy Excel Discussion (Misc queries) 3 June 9th 05 08:19 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


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