+ Reply to Thread
Results 1 to 3 of 3

=if statement

  1. #1
    michael48
    Guest

    =if statement

    I'm using excel 2003... I have a column (C7)with 16752 rows of #s 0 thru
    24... I need to separate this column into ranges... i.e. <3; >=3<5; >=5<8,
    etc... can i use an =if function to do this? I have tried
    =if(C7>=3<5,C7,"")... just returns a blank???
    Thanks

  2. #2
    Registered User
    Join Date
    03-04-2006
    Posts
    20
    You'd be better off using VLOOKUP function. Set up a table like this:
    A B
    0 <3
    1 <3
    2 <3
    3 >=3<5
    4 >=3<5
    5 >=5<8
    6 >=5<8
    7 >=5<8

    then use VLOOKUP like this: =VLOOKUP(3,A1:B8,2,0) . Check help for more info on VLOOKUP
    Last edited by a7n9; 07-19-2006 at 12:09 PM.
    All that we are is the result of what we have thought; what we think we become- Buddha
    My Home page My Excel/VBA Blog

  3. #3
    SimonCC
    Guest

    RE: =if statement

    If it's two conditions, you'll need to write them separately instead of
    together, try:
    =IF(AND(C7>=3,C7<5),C7,"")

    -Simon

    "michael48" wrote:

    > I'm using excel 2003... I have a column (C7)with 16752 rows of #s 0 thru
    > 24... I need to separate this column into ranges... i.e. <3; >=3<5; >=5<8,
    > etc... can i use an =if function to do this? I have tried
    > =if(C7>=3<5,C7,"")... just returns a blank???
    > Thanks


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1