+ Reply to Thread
Results 1 to 7 of 7

macro to refine a set of values

  1. #1
    Registered User
    Join Date
    01-07-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 365
    Posts
    58

    macro to refine a set of values

    Hey guys i have the following problem. This is what i have:



    A B

    3.4 5

    3.8 5.8

    4.5 7.9

    and so on.



    I need:



    C D

    3.4 5

    3.5 5.2

    3.6 5.4

    3.7 5.6

    3.8 5.8

    3.9 6.1

    4 6.4

    4.1 6.7

    4.2 7

    4.3 7.3

    4.4 7.6

    4.5 7.9



    Basically i need to refine the numbers i have in column B by column A and put the results in columns D and E. This is the code i came up with - it doesn't work, it's only to show you what i think i should use to get the job done.



    Can you please help me either make this code i have work or create something that does the job ?



    Please Login or Register  to view this content.


    Thank you
    Last edited by kroz; 09-25-2009 at 05:43 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: "for" macro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-07-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 365
    Posts
    58

    Re: macro to refine a set of values

    i rewrote the problem

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: macro to refine a set of values

    So you're looking at Interpolation ?

    http://www.tushar-mehta.com/excel/ne..._set_in_Excel_

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: macro to refine a set of values

    Without trying to come across as condescending it may be that Tushar's page is at times hard to follow so attached is a working example of his approach based on your sample values
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-07-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 365
    Posts
    58

    Re: macro to refine a set of values

    i was looking for a macro but this will do.. i just have to hide the D column

    Thank you for your help.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: macro to refine a set of values

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Also, please do not give negative feedback because you receive a warning, you are at fault or not following the Rules.

+ 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