PC Review


Reply
Thread Tools Rate Thread

Dependent "If" formulas

 
 
MZ
Guest
Posts: n/a
 
      14th Jan 2010
An "IF" formula tests the result of a calculation and inserts a text
description for how to proceed depending upon the result.
How could I write a formula in an adjacent row that would provide additional
instructions based upon the first result - without having to retype the
entire text in the second formula)


Here is the example:

FIRST IF FORMULA CONTAINED IN CELL A1:

=IF(F23+G23<3000,"Itemize $"&SUM(F23+G23),"Choose lesser tax between Deduct
and Credit methods")

SECOND FORMULA CONTAINED IN CELL B1:

=IF([What would be placed here instead of having to copy the text "Choose
lesser tax between Deduct and Credit methods" from the first formula],"Lesser
tax is:")

Would whatever method suggested work for continued "IF" formula in adjacent
cells that would provide additional instructions based upon the results of
the previous "IF formula?

Thank you
--
MZ
 
Reply With Quote
 
 
 
 
מיכאל (מיקי) אבידן
Guest
Posts: n/a
 
      14th Jan 2010
1) I'm not I understood you - but whatever you type inside "inverted commas"
will remain in all copied formulas.
2) Usually, you will type the text in a "far away" non-used cell [such as
ZZ1] and refer the formula to that cell with Fixing its address - such as:
$ZZ$1
Micky



"MZ" wrote:

> An "IF" formula tests the result of a calculation and inserts a text
> description for how to proceed depending upon the result.
> How could I write a formula in an adjacent row that would provide additional
> instructions based upon the first result - without having to retype the
> entire text in the second formula)
>
>
> Here is the example:
>
> FIRST IF FORMULA CONTAINED IN CELL A1:
>
> =IF(F23+G23<3000,"Itemize $"&SUM(F23+G23),"Choose lesser tax between Deduct
> and Credit methods")
>
> SECOND FORMULA CONTAINED IN CELL B1:
>
> =IF([What would be placed here instead of having to copy the text "Choose
> lesser tax between Deduct and Credit methods" from the first formula],"Lesser
> tax is:")
>
> Would whatever method suggested work for continued "IF" formula in adjacent
> cells that would provide additional instructions based upon the results of
> the previous "IF formula?
>
> Thank you
> --
> MZ

 
Reply With Quote
 
Joe User
Guest
Posts: n/a
 
      14th Jan 2010
"MZ" wrote:
> FIRST IF FORMULA CONTAINED IN CELL A1:
> =IF(F23+G23<3000,"Itemize $"&SUM(F23+G23),"Choose lesser tax between Deduct
> and Credit methods")
>
> SECOND FORMULA CONTAINED IN CELL B1:
> =IF([What would be placed here instead of having to copy the text "Choose
> lesser tax between Deduct and Credit methods" from the first formula],"Lesser
> tax is:")


In this case, you could write:

=if(left(A1,6)="choose", "Lesser tax is:", "")

If the first word of the alternative results in A1 is not distinctive, more
generally you might need:

=if(isnumber(search("lesser",A1)), "Lesser tax is:", "")

Be sure that whatever you SEARCH for is distinctive and not a substring of
something that would be ambiguous.


> Would whatever method suggested work for continued "IF" formula in adjacent
> cells that would provide additional instructions based upon the results of
> the previous "IF formula?


Yes, but if you change A1 to $A$1, it may be easier to copy, then edit the
formula, if that is what you want to do. Example:

=if(left($A$1,6)="choose", "Lesser tax is:", "")


----- original message -----

"MZ" wrote:
> An "IF" formula tests the result of a calculation and inserts a text
> description for how to proceed depending upon the result.
> How could I write a formula in an adjacent row that would provide additional
> instructions based upon the first result - without having to retype the
> entire text in the second formula)
>
>
> Here is the example:
>
> FIRST IF FORMULA CONTAINED IN CELL A1:
>
> =IF(F23+G23<3000,"Itemize $"&SUM(F23+G23),"Choose lesser tax between Deduct
> and Credit methods")
>
> SECOND FORMULA CONTAINED IN CELL B1:
>
> =IF([What would be placed here instead of having to copy the text "Choose
> lesser tax between Deduct and Credit methods" from the first formula],"Lesser
> tax is:")
>
> Would whatever method suggested work for continued "IF" formula in adjacent
> cells that would provide additional instructions based upon the results of
> the previous "IF formula?
>
> Thank you
> --
> MZ

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007+AnalysisServices2005SP2: Pivot Table to SSAS why menu item "Options"->"Formulas" is disabled? vimas Microsoft Excel Discussion 0 2nd Mar 2007 03:44 PM
- Excel 2007: Pivot Table to SSAS why menu item "Options"->"Formulas" is disabled? vimas Microsoft Excel Discussion 0 26th Feb 2007 07:56 PM
Excel 2007: Pivot Table to SSAS why menu item "Options"->"Formulas" is disabled? vimas Microsoft Excel Discussion 0 21st Feb 2007 04:35 PM
LOTUS TRANSITION KEYS "/" "R" / "V" convert formulas to text. =?Utf-8?B?Ym9iQGdvcmRvbmVuZ2luZWVyaW5nLmNvbQ==?= Microsoft Access Getting Started 3 18th Jan 2006 09:15 AM
Automatically making formulas "Absolute" or "$ Relative" =?Utf-8?B?Sk1BVEhFUw==?= Microsoft Excel Misc 4 27th Aug 2005 12:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 PM.