+ Reply to Thread
Results 1 to 8 of 8

A cell contains a number between a range then return value in another cell

  1. #1
    Registered User
    Join Date
    11-01-2017
    Location
    JHB
    MS-Off Ver
    2016
    Posts
    13

    A cell contains a number between a range then return value in another cell

    If cell A1 contains any number between 0-7 then A2 returns 1, and if A1 is a number between 8-12 then A2 return 2, and ... returns 4,5, etc.

    Please help!

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: A cell contains a number between a range then return value in another cell

    0-7
    8-12 and what are next 2 Values in the series
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    11-01-2017
    Location
    JHB
    MS-Off Ver
    2016
    Posts
    13

    Re: A cell contains a number between a range then return value in another cell

    0-7
    8-12
    13-17
    18-22
    23-25

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: A cell contains a number between a range then return value in another cell

    have you considered using a table to do this?

    you an do this with if functions too but it would be messy.
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  5. #5
    Registered User
    Join Date
    11-01-2017
    Location
    JHB
    MS-Off Ver
    2016
    Posts
    13

    Re: A cell contains a number between a range then return value in another cell

    I have not tried a table or anything yet as I dont know where to even start

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: A cell contains a number between a range then return value in another cell

    i would personally put a table in another sheet and reference it like this
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-01-2017
    Location
    JHB
    MS-Off Ver
    2016
    Posts
    13

    Re: A cell contains a number between a range then return value in another cell

    This works fine with me, thanks!

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: A cell contains a number between a range then return value in another cell

    no problem glad to have helped.

+ 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. Replies: 4
    Last Post: 10-17-2016, 05:20 PM
  2. Find a string withing cell range and return cell number
    By visak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2015, 09:19 PM
  3. Replies: 2
    Last Post: 10-03-2014, 03:46 AM
  4. [SOLVED] If cell contains text contained in a named range return the row number
    By spoursy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2014, 05:54 AM
  5. Replies: 3
    Last Post: 04-07-2013, 10:41 PM
  6. [SOLVED] Find specific cell and return column number from a dynamic range
    By nivoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2012, 12:39 PM
  7. [SOLVED] Return the row number of a cell relative to a range
    By Frederick Chow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2005, 05:05 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