Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Add Condition to Formula

I have to add to the following formula:

=IF(OR(C12={"None";""}),"",VLOOKUP(A12&"-"&F12&"-"&G12,INDIRECT(CHOOSE(MATCH(C12,{"Internal";"Exter nal"},0),"'Writing
Charges'!D3:E60","'Writing Charges'!G3:H60")),2,0)*I12)

the next part needs to be
If B12="SM" than don't add anything
If C12="NONE" than don't add anything
If C12="Internal";"External" then VLOOKUP(A12&"-"&F12 than "'Proof Layout
Charges'!c3:d31","'Proof Layout Charges'!c3:d31")),2,0)*I12

Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Add Condition to Formula

Please use this one instead.

"Karen Smith" wrote:

I have to add to the following formula:

=IF(OR(C12={"None";""}),"",VLOOKUP(A12&"-"&F12&"-"&G12,INDIRECT(CHOOSE(MATCH(C12,{"Internal";"Exter nal"},0),"'Writing
Charges'!D3:E60","'Writing Charges'!G3:H60")),2,0)*I12)

the next part needs to be
If B12="SM" than don't add anything, If B12="CD" then the following
If C12="NONE" than don't add anything
If C12="Internal";"External" then VLOOKUP(A12&"-"&F12 than "'Proof Layout
Charges'!c3:d31","'Proof Layout Charges'!c3:d31")),2,0)*I12

Can anyone help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Add Condition to Formula

Create another column, say at A12, that translates B12 into
the text of the worksheet name:
=IF(B12="SM","WC",IF(B12="CD","PLC",""))
WC=WritingCharges
PLC=ProofLayoutCharges
In your formula, replace
"'WritingCharges'!xx:yy"
with
A12&"!xx:yy"


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
MORE THAN ONE CONDITION IN A FORMULA CLM Excel Worksheet Functions 5 January 18th 07 01:21 PM
Formula For If & Or Condition anandmr65 Excel Discussion (Misc queries) 8 April 17th 06 10:40 AM
If formula and #N/A as a condition EstherJ Excel Discussion (Misc queries) 2 August 23rd 05 02:52 PM
HELP? ...a second condition in one formula MichaelTM99 Excel Worksheet Functions 5 December 3rd 04 10:29 PM
Add condition to formula Pat Excel Worksheet Functions 0 November 16th 04 12:23 PM


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