Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jerry
 
Posts: n/a
Default simplyfy and help on errors

Hello All,

I have a formula that is almost working.
I am trying make sure that if two specific criteria are met that the revenue
column(f in this case) gets multiplied by K1 or K2 depending on the
evaluation.

I am hoping to simplify the following and be error free.

=IF(OR(C50="",D50=""),"",IF(D50="Services A",F50*$K$1,IF(AND(SEARCH("Company
A",C50),D50="Services B"),F50*$K$2,IF(D50="Services B",F50*$K$1,""))))

this is returning an Value Error

any suggestions on how to go about this.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

This portion of your formula:

IF(AND(SEARCH("Company A",C50), ...
will return an error if "company A" isn't in C50.

Maybe
IF(AND(isnumber(SEARCH("Company A",C50))),....

jerry wrote:

Hello All,

I have a formula that is almost working.
I am trying make sure that if two specific criteria are met that the revenue
column(f in this case) gets multiplied by K1 or K2 depending on the
evaluation.

I am hoping to simplify the following and be error free.

=IF(OR(C50="",D50=""),"",IF(D50="Services A",F50*$K$1,IF(AND(SEARCH("Company
A",C50),D50="Services B"),F50*$K$2,IF(D50="Services B",F50*$K$1,""))))

this is returning an Value Error

any suggestions on how to go about this.


--

Dave Peterson
  #3   Report Post  
jerry
 
Posts: n/a
Default

Dave u da man!

thanks a bunch, works like a charm now

"Dave Peterson" wrote:

This portion of your formula:

IF(AND(SEARCH("Company A",C50), ...
will return an error if "company A" isn't in C50.

Maybe
IF(AND(isnumber(SEARCH("Company A",C50))),....

jerry wrote:

Hello All,

I have a formula that is almost working.
I am trying make sure that if two specific criteria are met that the revenue
column(f in this case) gets multiplied by K1 or K2 depending on the
evaluation.

I am hoping to simplify the following and be error free.

=IF(OR(C50="",D50=""),"",IF(D50="Services A",F50*$K$1,IF(AND(SEARCH("Company
A",C50),D50="Services B"),F50*$K$2,IF(D50="Services B",F50*$K$1,""))))

this is returning an Value Error

any suggestions on how to go about this.


--

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



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