Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 90
Default Multiple IF functions

Hey gang, looking for a little help again...

I'm looking for a cell to add 2 others cells together depending on the
number of another cell (confused yet...). Here's a breakdown...

I want cell D7 to show the answer. It needs to check cell C7 and compare it
too 3 different ranges (The ranges are a set of numbers). If C7 is found in
Range1, then it's needs to do A7-B7, if C7 is found it Range2, then it needs
to do B7-A7, and if it's found in Range3, it needs to do 0-(A7+B7). Here's
my formula so far:

=IF(C7=G2:G19,A7-B7,IF(C7=H2:H19,B7-A7,IF(C7=I2,0-(A7+B7))))

G2:G19 is Range1
H2:H19 is Range2
I2 is Range3

I keep getting "FALSE" as a return. What's wrong with this? Thanks for
your continued help.

Matt


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Multiple IF functions

maybe

=IF(NOT(ISERROR(MATCH(C7,G2:G19,0))),A7-B7,IF(NOT(ISERROR(MATCH(C7,H2:H19,0))),B7-A7,IF(C7=I2,-(A7+B7),"No matches")))


"mpenkala" wrote:

Hey gang, looking for a little help again...

I'm looking for a cell to add 2 others cells together depending on the
number of another cell (confused yet...). Here's a breakdown...

I want cell D7 to show the answer. It needs to check cell C7 and compare it
too 3 different ranges (The ranges are a set of numbers). If C7 is found in
Range1, then it's needs to do A7-B7, if C7 is found it Range2, then it needs
to do B7-A7, and if it's found in Range3, it needs to do 0-(A7+B7). Here's
my formula so far:

=IF(C7=G2:G19,A7-B7,IF(C7=H2:H19,B7-A7,IF(C7=I2,0-(A7+B7))))

G2:G19 is Range1
H2:H19 is Range2
I2 is Range3

I keep getting "FALSE" as a return. What's wrong with this? Thanks for
your continued help.

Matt


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default Multiple IF functions

First off, you're getting FALSE because everything you wrote is going to be
an error or false no matter what. But it is FALSE because your last IF
statement doesn't have a FALSE statement to it. Try this...

=IF(MATCH(C7,G2:G19,0),A7-B7,IF(MATCH(C7,H2:H19,0),B7-A7,IF(C7=I2,0-(A7+B7),"No Match")))




"mpenkala" wrote:

Hey gang, looking for a little help again...

I'm looking for a cell to add 2 others cells together depending on the
number of another cell (confused yet...). Here's a breakdown...

I want cell D7 to show the answer. It needs to check cell C7 and compare it
too 3 different ranges (The ranges are a set of numbers). If C7 is found in
Range1, then it's needs to do A7-B7, if C7 is found it Range2, then it needs
to do B7-A7, and if it's found in Range3, it needs to do 0-(A7+B7). Here's
my formula so far:

=IF(C7=G2:G19,A7-B7,IF(C7=H2:H19,B7-A7,IF(C7=I2,0-(A7+B7))))

G2:G19 is Range1
H2:H19 is Range2
I2 is Range3

I keep getting "FALSE" as a return. What's wrong with this? Thanks for
your continued help.

Matt


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
Multiple Functions kjguillermo Excel Worksheet Functions 2 December 7th 06 04:40 AM
How do I use multiple functions? Dan L. Excel Worksheet Functions 3 December 13th 05 10:09 AM
Multiple IF functions questionsforms Excel Worksheet Functions 2 October 30th 05 03:12 AM
Multiple Functions Kevin Excel Worksheet Functions 4 March 14th 05 01:51 AM
Multiple IF functions sonicj Excel Worksheet Functions 3 February 2nd 05 03:31 AM


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