Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jerry
 
Posts: n/a
Default calculation based on meeting two criteria

I have the following formula and it returns the wrong calculation

K1 =.03
K2 =.02

In this situation, its supposed to multiply F82*K2, instead it is
multiplying F82* K1
=IF(E82="service a",F82*$K$1,IF(AND(E82="Service B",MATCH(C82,'Sheet
2!$C$2:$C$15)),F82*$K$1,F82*$K$2))

any help is appreciated.

  #2   Report Post  
Cutter
 
Posts: n/a
Default


To simplify your formula try this:

=IF(OR(E82="service a",AND(E82="Service B",MATCH(C82,'Sheet
2!$C$2:$C$15))),F82*$K$1,F82*$K$2)


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=473965

  #3   Report Post  
JMB
 
Posts: n/a
Default

MATCH(C82,Sheet2!$C$2:$C$15)

You have the match function set up to find an approximate match, not an
exact match. Is this what you intended? If you intend to look for an exact
match, this part of your formula would be problematic. Check help for the
match function and its argument (the third argument, which you've omitted,
specifies the match type. 0 specifies an exact match).

If you do intend to look for an exact match, you will probably need to nest
MATCH inside NOT(ISERROR(MATCH(....))) or NOT(ISNA(MATCH(.....))) to get the
results you want.


"jerry" wrote:

I have the following formula and it returns the wrong calculation

K1 =.03
K2 =.02

In this situation, its supposed to multiply F82*K2, instead it is
multiplying F82* K1
=IF(E82="service a",F82*$K$1,IF(AND(E82="Service B",MATCH(C82,'Sheet
2!$C$2:$C$15)),F82*$K$1,F82*$K$2))

any help is appreciated.

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
Is the IRR calculation based on cash flows at beginning of year? sammad Excel Worksheet Functions 1 September 6th 05 05:15 PM
Counting the number of cells meeting conditional formating criteria Jeff Excel Worksheet Functions 4 July 9th 05 01:18 AM
Calculation based on a condition mac_see Excel Worksheet Functions 3 April 22nd 05 01:24 AM
counting cells (COUNTIF) based on two or more criteria Tricia S. Excel Worksheet Functions 10 March 17th 05 02:17 PM
Counting an Array based on a calculation HokieLawrence Excel Discussion (Misc queries) 10 February 16th 05 02:39 AM


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