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

I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default More than one "if" in a cell

On 25 Feb., 14:26, Buggelsgaard
wrote:
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?


You can write an ordinary IF sentence another IF sentence within the
other.

Structu
=IF(IF(IF(x;x);x);x)
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default More than one "if" in a cell

=IF(H7<1,0,IF(H7<=39,C7+E7*H7,D7+F7*H7))
--
David Biddulph


"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default More than one "if" in a cell

=IF(H7<1,0, IF(H739,D7+(F7*H7), C7+(E7*H7)))
or
=(H739)*(D7+(F7*H7))+(H7<39)*(H7=1)*(C7+(E7*H7))
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default More than one "if" in a cell

=IF(H7<1,0,IF(H739,D7+(F7*H7),C7+(E7*H7)))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default More than one "if" in a cell

Hi David, this works - thanks a lot

/Buggelsgaard

"David Biddulph" skrev:

=IF(H7<1,0,IF(H7<=39,C7+E7*H7,D7+F7*H7))
--
David Biddulph


"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default More than one "if" in a cell

No.1 doesn't give the correct result it gives a "false" result.

No.2. works fine - thanks a lot.

/Buggelsgaard

"Bernard Liengme" skrev:

=IF(H7<1,0, IF(H739,D7+(F7*H7), C7+(E7*H7)))
or
=(H739)*(D7+(F7*H7))+(H7<39)*(H7=1)*(C7+(E7*H7))
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default More than one "if" in a cell

Doesn't work correct - gives a "false" statement. Though I have found the
right solution by one of the other suggestions on this thread.

Thanks

/Buggelsgaard

"Niek Otten" skrev:

=IF(H7<1,0,IF(H739,D7+(F7*H7),C7+(E7*H7)))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default More than one "if" in a cell

You may want to try those formulas again--even though you have a working
solution.

Buggelsgaard wrote:

Doesn't work correct - gives a "false" statement. Though I have found the
right solution by one of the other suggestions on this thread.

Thanks

/Buggelsgaard

"Niek Otten" skrev:

=IF(H7<1,0,IF(H739,D7+(F7*H7),C7+(E7*H7)))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Buggelsgaard" wrote in message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?




--

Dave Peterson
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default More than one "if" in a cell

Always copy and paste formulas to your formula bar, never retype them

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Dave Peterson" wrote in message
...
You may want to try those formulas again--even though you have a working
solution.

Buggelsgaard wrote:

Doesn't work correct - gives a "false" statement. Though I have found the
right solution by one of the other suggestions on this thread.

Thanks

/Buggelsgaard

"Niek Otten" skrev:

=IF(H7<1,0,IF(H739,D7+(F7*H7),C7+(E7*H7)))

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Buggelsgaard" wrote in
message
...
I would like to put all these functions into one cell:
IF H7 is less than 1, then the result is 0.
IF H7 is 1-39, then the result is C7+(E7*H7).
IF H7 is more than 39, then the result is D7+(F7*H7).

How would this formula be created?



--

Dave Peterson


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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


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