Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Conditional formulas

Need a formula based on a Status.

If Status is "A", it needs to calculate (T2*5)+35

If Status is "L", it needs to return 0 (zero)

If Status is "H", it needs to return 35

If Status is "P", it needs to return "NA"

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Conditional formulas

Try this:

=IF(cell="L",0,IF(cell="H",35,IF(cell="A",T2*5+32, "NA")))

where cell is your Status. This will trap any other entries and return
"NA", in addition to Status = "P".

Hope this helps.

Pete

On Dec 2, 3:41*pm, Betty K wrote:
Need a formula based on a Status. *

If Status is "A", it needs to calculate (T2*5)+35

If Status is "L", it needs to return 0 * * (zero)

If Status is "H", it needs to return 35

If Status is "P", it needs to return "NA"

Thank you in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Conditional formulas

Assuming the various statuses (A, L, H, P) are running in S2 down
you could try this placed in say, U2:
=IF(S2="","",IF(S2="A",(T2*5)+35,VLOOKUP(S2,{"L",0 ;"H",35;"P","NA"},2,0)))
Copy U2 down as far as required. Modify to suit. Any good? hit the YES below.
--
Max
Singapore
xde
---
"Betty K" wrote:
Need a formula based on a Status.

If Status is "A", it needs to calculate (T2*5)+35

If Status is "L", it needs to return 0 (zero)

If Status is "H", it needs to return 35

If Status is "P", it needs to return "NA"

Thank you in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Conditional formulas

Thank you!

"Max" wrote:

Assuming the various statuses (A, L, H, P) are running in S2 down
you could try this placed in say, U2:
=IF(S2="","",IF(S2="A",(T2*5)+35,VLOOKUP(S2,{"L",0 ;"H",35;"P","NA"},2,0)))
Copy U2 down as far as required. Modify to suit. Any good? hit the YES below.
--
Max
Singapore
xde
---
"Betty K" wrote:
Need a formula based on a Status.

If Status is "A", it needs to calculate (T2*5)+35

If Status is "L", it needs to return 0 (zero)

If Status is "H", it needs to return 35

If Status is "P", it needs to return "NA"

Thank you in advance.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Conditional formulas

Welcome, Betty
--
Max
Singapore
xde
"Betty K" wrote in message
...
Thank you!





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
conditional formulas Danno[_2_] Excel Discussion (Misc queries) 5 October 16th 08 09:31 PM
Conditional Formulas Louise Excel Worksheet Functions 8 June 12th 08 10:51 PM
conditional formulas mrseje1 New Users to Excel 2 November 20th 06 11:01 PM
How do I set up conditional formulas craig Excel Worksheet Functions 1 February 4th 06 09:45 PM
Conditional Formulas Norm75 Excel Discussion (Misc queries) 2 December 23rd 05 07:42 PM


All times are GMT +1. The time now is 06:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"