+ Reply to Thread
Results 1 to 5 of 5

IF Statement

Hybrid View

  1. #1
    Registered User
    Join Date
    09-22-2013
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    1

    Talking IF Statement

    HI,

    I am trying to create an IF statement but cannot use a nested IF as i have more than 7 arguments.
    Unfortunately, I can't seem to get the 'between' formula together and it's throwing me up errors.
    I am using excel 2010 and need to put the following together:

    <74 A
    74-81 B
    82-88 C
    89-96 D
    97-103 E
    104-111 F
    112-118 G
    119-126 H
    >127 I

    Can anyone assist?
    Many thanks in advance!

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,651

    Re: IF Statement

    Make a table and use the VLOOKUP formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: IF Statement

    Doesn't this work for you?

    =IF(A1<74,"A",IF(A1<82,"B",IF(A1<89,"C",IF(A1<97,"D",IF(A1<104,"E",IF(A1<112,"F",IF(A1<119,"G",IF(A1<127,"H","I"))))))))

    I've assumed that when A1=127 (which is not mentioned in your explanation), the formula should result in "I".
    When I say semicolon, u say comma!

  4. #4
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: IF Statement

    Or use this LOOKUP formula (if your value is in cell A1):

    =LOOKUP(A1,{0,74,82,89,97,104,112,119,127},{"A","B","C","D","E","F","G","H","I"})

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Statement

    Create a 2 column table and use a lookup formula.

    Data Range
    A
    B
    C
    D
    E
    1
    Header1
    Header2
    -----
    Lookup
    Result
    2
    0
    A
    113
    G
    3
    74
    B
    4
    82
    C
    5
    89
    D
    6
    97
    E
    7
    104
    F
    8
    112
    G
    9
    119
    H
    10
    127
    I

    This formula entered in E2:

    =LOOKUP(D2,A2:B10)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  2. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  3. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM

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