+ Reply to Thread
Results 1 to 5 of 5

Need to populate new column with range values based on existing colum with if statement

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    FLorida
    MS-Off Ver
    Office 365
    Posts
    5

    Need to populate new column with range values based on existing colum with if statement

    Hello,

    I have an excel spreadsheet with two columns below.

    High School GPA High School GPA Range
    4.12
    4.12
    4.12
    4.12
    3.89
    3.89
    3.89
    3.89
    2.67
    2.67
    2.67
    2.67


    I need to populate, the 'High School GPA Range' column based on the 'High School GPA' column.
    The 'High School GPA Range' should be populated with the following values:

    3.5 - 4.500
    3.0 - 3.499
    2.5 - 2.990
    2.0 - 2.490

    I am guessing an If statement needs to be used.

    Thanks,

    LastJedi

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,649

    Re: Need to populate new column with range values based on existing colum with if statemen

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.100.4 for Mac MS 365
    Posts
    8,724

    Re: Need to populate new column with range values based on existing colum with if statemen

    or a different take... =LOOKUP(A1,{2,2.5,3,3.5},{"2.0 - 2.490","2.5 - 2.990","3.0 - 3.499","3.5 - 4.500"})
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Need to populate new column with range values based on existing colum with if statemen

    Or another way to go:
    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,649

    Re: Need to populate new column with range values based on existing colum with if statemen

    So many ways . Note that I went to 3 decimal places in the range (for consistency) which will, potentially, give a different result to the other two methods.

    To be accurate to your post, mine should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] How to set up if statement based on an item existing in a column
    By kufta4 in forum Excel General
    Replies: 1
    Last Post: 03-10-2017, 06:08 PM
  2. Select range of data based on values in colum A
    By eddiej90 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-07-2016, 06:12 PM
  3. Replies: 4
    Last Post: 04-26-2015, 12:18 PM
  4. Match values in a colum based on criteria from other column
    By lcaseybsa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2013, 02:04 PM
  5. Macro to sum values in one column based on data in another colum while ignoring blanks
    By The Machinist in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-15-2012, 03:25 PM
  6. How to shift range of values from a colum to another colum at a programmed cell.
    By lolypop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2007, 06:24 PM

Tags for this Thread

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