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 Function Error IF Statement

The follow work fine in seperate cells.

=IF(AND(R70,O7="M"),(R7*I19+50)*0.093,(0))
=IF(AND(R70,O7="Q"),(R7*I19+50)*0.27,(0))
=IF(AND(R70,O7="S"),(R7*I19+50)*0.53,(0))
=IF(AND(R70,O7="A"),(R7*I19+50),(0))

What I want to do is combine the 4 above in 1 cell so the results show in a
single cell.

I can't get it to work.
Any help will be appreciated.

Thanks.

Bob Z


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 464
Default Function Error IF Statement

Not sure which order the functions should be, but this combination should
help you;

=IF(AND(R70,O7="M"),(R7*I19+50)*0.093,
IF(AND(R70,O7="Q"),(R7*I19+50)*0.27,
IF(AND(R70,O7="S"),(R7*I19+50)*0.53,
IF(AND(R70,O7="A"),(R7*I19+50),0))))



--
Regards
Dave Hawley
www.ozgrid.com
"Bob Zimmerman" wrote in message
...
The follow work fine in seperate cells.

=IF(AND(R70,O7="M"),(R7*I19+50)*0.093,(0))
=IF(AND(R70,O7="Q"),(R7*I19+50)*0.27,(0))
=IF(AND(R70,O7="S"),(R7*I19+50)*0.53,(0))
=IF(AND(R70,O7="A"),(R7*I19+50),(0))

What I want to do is combine the 4 above in 1 cell so the results show in
a
single cell.

I can't get it to work.
Any help will be appreciated.

Thanks.

Bob Z



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Function Error IF Statement

Another way..using LOOKUP()

=IF(AND(COUNT(SEARCH({"A","M","Q","S"},O7)),R70),
(R7*I19+50)*LOOKUP(O7,{"A","M","Q","S"},{1,0.093,0 .27,0.53}),0)

--
Jacob (MVP - Excel)


"Bob Zimmerman" wrote:

The follow work fine in seperate cells.

=IF(AND(R70,O7="M"),(R7*I19+50)*0.093,(0))
=IF(AND(R70,O7="Q"),(R7*I19+50)*0.27,(0))
=IF(AND(R70,O7="S"),(R7*I19+50)*0.53,(0))
=IF(AND(R70,O7="A"),(R7*I19+50),(0))

What I want to do is combine the 4 above in 1 cell so the results show in a
single cell.

I can't get it to work.
Any help will be appreciated.

Thanks.

Bob Z


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Function Error IF Statement

Thank you it works like a charm.

"ozgrid.com" wrote:

Not sure which order the functions should be, but this combination should
help you;

=IF(AND(R70,O7="M"),(R7*I19+50)*0.093,
IF(AND(R70,O7="Q"),(R7*I19+50)*0.27,
IF(AND(R70,O7="S"),(R7*I19+50)*0.53,
IF(AND(R70,O7="A"),(R7*I19+50),0))))



--
Regards
Dave Hawley
www.ozgrid.com
"Bob Zimmerman" wrote in message
...
The follow work fine in seperate cells.

=IF(AND(R70,O7="M"),(R7*I19+50)*0.093,(0))
=IF(AND(R70,O7="Q"),(R7*I19+50)*0.27,(0))
=IF(AND(R70,O7="S"),(R7*I19+50)*0.53,(0))
=IF(AND(R70,O7="A"),(R7*I19+50),(0))

What I want to do is combine the 4 above in 1 cell so the results show in
a
single cell.

I can't get it to work.
Any help will be appreciated.

Thanks.

Bob Z



.

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
If Statement Error Kiley Excel Discussion (Misc queries) 3 May 18th 09 10:25 PM
using error type and if statement to return a value. GAIDEN Excel Worksheet Functions 6 July 25th 08 12:38 AM
If statement error check lghovden06 Excel Worksheet Functions 1 July 9th 08 11:05 PM
Can't fix On Error statement austris Excel Discussion (Misc queries) 7 October 13th 06 07:09 AM
IF statement error D Excel Discussion (Misc queries) 4 October 4th 06 04:28 PM


All times are GMT +1. The time now is 02:55 AM.

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"