Notices
The Basement Non-Honda/Acura discussion. Content should be tasteful and "primetime" safe.

Excel Peeps

Thread Tools
 
Old Feb 25, 2007 | 02:59 PM
  #1  
F22B Prelude's Avatar
F22B Prelude
Thread Starter
Rachel Bilson
 
Joined: Oct 2005
Posts: 11,230
Likes: 0
From: South Bend/Walkerton, Ind
Default Excel Peeps

How do i do an IF function
Reply
Old Feb 25, 2007 | 03:07 PM
  #2  
RB's Avatar
RB
snitches get stitches
 
Joined: May 2002
Posts: 49,696
Likes: 1
From: Portland, OR
Default

Originally Posted by F22B Prelude
How do i do an IF function


Hit the fx button near the equation bar, then chose IF:

a box will pop up with 3 input lines
first line is your main judement. Say something like X>2 (or whatever cell you want for X)
second line is if its true. If X = 3 or whatever, then put what happens when your equation is true.
second line is if its false. If X = 1, it'll put whatever you want the new cell to say if its false.
Reply
Old Feb 25, 2007 | 03:31 PM
  #3  
F22B Prelude's Avatar
F22B Prelude
Thread Starter
Rachel Bilson
 
Joined: Oct 2005
Posts: 11,230
Likes: 0
From: South Bend/Walkerton, Ind
Default

I have 3 choices though

Its an assumptions page for 3 cars (Fusion, Accord, Camry)

Fusion = 55
Accord = 52
Camry = 53

So i want it to choose the Fusion because it received the highest score

(this is for my computer class)
Reply
Old Feb 25, 2007 | 03:37 PM
  #4  
Skelly_GSR's Avatar
Skelly_GSR
RB does men
 
Joined: Jan 2003
Posts: 11,997
Likes: 0
From: Pittsburgh
Default

its been ahwile.

if function =if(

so basically you want the if function to tell you which is the highest ranking right?

you can do =if(fusion>camry,fusion>accord,"fusion")

something like that
Reply
Old Feb 25, 2007 | 04:22 PM
  #5  
Misa's Avatar
Misa
Pic Whore
 
Joined: Jul 2004
Posts: 22,224
Likes: 1
From: NJ
Default

you can nest an if function as an argument within another if function.
Reply
Old Feb 25, 2007 | 04:53 PM
  #6  
F22B Prelude's Avatar
F22B Prelude
Thread Starter
Rachel Bilson
 
Joined: Oct 2005
Posts: 11,230
Likes: 0
From: South Bend/Walkerton, Ind
Default

I got this thicky thick chick helpin me tomorrow
Reply
Old Feb 25, 2007 | 05:21 PM
  #7  
Dweezel's Avatar
Dweezel
d@weezel music
 
Joined: Jun 2002
Posts: 5,929
Likes: 0
Default

How is the sheet setup and what are you trying to achieve? My assumption is that you have a 2x3 list setup as follows:
A1 Fusion | B1 55
A2 Accord | B2 52
A3 Camry | B3 53

If you can, sort the list from lowest to highest to make things easier. If you can't, then you want to create a third column (C1 through C3) that will calculate which number is the highest. For example:

C1: =IF(B1>B2,IF(B1>B3,TRUE,FALSE),FALSE)
C2: =IF(B2>B1,IF(B2>B3,TRUE,FALSE),FALSE)
C2: =IF(B3>B1,IF(B3>B2,TRUE,FALSE),FALSE)

Now, to select the Fusion, in Cell A4 to choose the Fusion, it would be setup like this:

=IF(C1=TRUE,A1,IF(C2=TRUE,A2,A3))

You can hide the C column if you want or leave it there. That should work for you. If you have any other questions and want to avoid the thicky chicky, let me know.
Reply
Old Feb 26, 2007 | 05:39 AM
  #8  
bnuk's Avatar
bnuk
Senior Member
 
Joined: Feb 2003
Posts: 1,863
Likes: 0
From: pittsburgh.
Default

^what he said. nesting is the key.
Reply




All times are GMT -8. The time now is 03:47 AM.