Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andy C
 
Posts: n/a
Default Conditional functions

=IF(K7=1,
IF(AND(A7=51),M7/1000*$N$2,M7/1000*$O$2),
IF(AND(A7=52),M7/1000*$N$3,M7/1000*$O$3),
IF(AND(A7=53),M7/1000*$N$4,M7/1000*$O$4),
IF(AND(A7=54),M7/1000*$N$5,M7/1000*$O$5))

I have two primary conditions, either a one or two and four secondary
conditions, either 51, 52, 53, or 54. So if K7 = 1 and A7 = 51 divide
M7/1000 and multiply by O2. Evidently I have too many iterations for this
to work. Is there another way to accomplish this? I am using Office 2000
and 2003.
Thanks,
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Conditional functions

One way ...

Put in M2:M5 the numbers: 51, 52, 53, 54

Then we could use:

=IF(K7=1,IF(ISNA(MATCH(A7,$M$2:$M$5,0)),M7/1000*VLOOKUP(A7,$M$2:$O$5,3,0),M7
/1000*VLOOKUP(A7,$M$2:$O$5,2,0)),"")

Have presumed that nothing, i.e. blanks: ""
to be returned if K7 <1 (this is not specified by you)

Adapt to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Andy C" <Andy wrote in message
...
=IF(K7=1,
IF(AND(A7=51),M7/1000*$N$2,M7/1000*$O$2),
IF(AND(A7=52),M7/1000*$N$3,M7/1000*$O$3),
IF(AND(A7=53),M7/1000*$N$4,M7/1000*$O$4),
IF(AND(A7=54),M7/1000*$N$5,M7/1000*$O$5))

I have two primary conditions, either a one or two and four secondary
conditions, either 51, 52, 53, or 54. So if K7 = 1 and A7 = 51 divide
M7/1000 and multiply by O2. Evidently I have too many iterations for

this
to work. Is there another way to accomplish this? I am using Office 2000
and 2003.
Thanks,



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
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM
Conditional Functions KidMW14 Excel Worksheet Functions 1 November 13th 05 09:25 AM
Conditional Functions KidMW14 Excel Worksheet Functions 1 November 13th 05 08:06 AM
Conditional Functions KidMW14 Excel Worksheet Functions 3 November 13th 05 04:39 AM
Conditional format combined with functions DAJ Excel Worksheet Functions 1 November 3rd 05 01:01 AM


All times are GMT +1. The time now is 05:38 AM.

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"