+ Reply to Thread
Results 1 to 4 of 4

Set one number to equal another

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    1

    Set one number to equal another

    Hi,

    I have a preset series of values that I want to equal other values. For example:

    5.00 = 135
    5.02 = 136
    5.04 = 137
    5.07 = 138
    5.09 = 139
    ...
    6.00 = 180

    Can I get excel to run down approx 7000 rows checking for a possible of 360 numbers in each cell, then converting that number to its corresponding value as above?

    For example if the value in cell A1 was 5.02, B1 would equal 136. The problem is A1 may contain 360 different values and I need excel to convert it to the corresponding value.

    Any help is greatly appreciated. Thanks in advance.
    Last edited by Silkygee; 02-07-2012 at 07:47 AM.

  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
    44,366

    Re: Set one number to equal another

    Have a look at the VLOOKUP function.

    Regards, TMS
    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 Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Set one number to equal another

    Easiest way would be to set up a look up table and then use VLOOKUP to populate the corresponding value.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Set one number to equal another

    Upload a sample file to get it solved
    Quang PT

+ 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