+ Reply to Thread
Results 1 to 3 of 3

is there a function that will call to a cell of a certain numeric value?

  1. #1
    Registered User
    Join Date
    02-22-2016
    Location
    Saint Louis, Missouri
    MS-Off Ver
    2016
    Posts
    15

    is there a function that will call to a cell of a certain numeric value?

    hey there and hello! thanks in advance for any help that can be offered.

    so im all of a sudden needing to learn about excel macros for my job, and i've gotten some of the basics down, but find myself stuck with this new task I have.


    basically, I need to take text, open it in excel, and run some formatting on it to get a series of specific numbers in a column to occur. once i have that data, i need to pull just that data from the sheet and add it to a new sheet.

    the thing is, there is going to be a variable total number of cells of this data. So, what I think i need to do in my macro is once I have the data formatted, is have excel find the first cell with that specific # of digits (for example sake, lets says I need it to find the first cell with a number that has 11 digits in it), and then look at the cell underneath it, see if the data in the cell has the same number of digits, and if it does, extend the range downward one cell, and then repeat that until the check fails and then copy and paste to the new sheet

    so, yeah, I guess thats my first question: is there anyway to make excel go to a cell containing a specific number value? if there is, i'd love to know how.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,617

    Re: is there a function that will call to a cell of a certain numeric value?

    at this level of generalisation, several answers could ge given.
    but let me try to show one (simple but not very efficient, especially if your datsets are several thousand items or bigger).
    lets assume you look into column A
    Please Login or Register  to view this content.
    Of course this is just a sample and it assumes there is at least one such value in your dataset.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    02-22-2016
    Location
    Saint Louis, Missouri
    MS-Off Ver
    2016
    Posts
    15

    Re: is there a function that will call to a cell of a certain numeric value?

    Hello and thanks for the reply! Sorry for the general details. Let me use some images to get into specifics. After the formatting, here's what the start of the data range is:

    rangestart.png

    And it terminates here:

    range ends.png

    In this instance, the range would be 50 cells, but it will be variable from file to file.

    At this point, I think I have the loop necessary, but what I am unsure of is when I achieve termination of the loop, the next step needs to be copying the values in the range to the clipboard so they can be pasted elsewhere. I'm going to make some attempts here and give my results.

  4. #4
    Registered User
    Join Date
    02-22-2016
    Location
    Saint Louis, Missouri
    MS-Off Ver
    2016
    Posts
    15

    Re: is there a function that will call to a cell of a certain numeric value?

    oh, I forgot to add: this is the code so far:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-22-2016
    Location
    Saint Louis, Missouri
    MS-Off Ver
    2016
    Posts
    15

    Re: is there a function that will call to a cell of a certain numeric value?

    please ignore
    Last edited by macrohelpplz; 02-24-2016 at 01:39 PM. Reason: multi post before site went down :(

+ 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. How to use the result of a CELL function call
    By garrit8516 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-18-2014, 02:11 PM
  2. Replies: 2
    Last Post: 06-03-2014, 03:44 AM
  3. [SOLVED] How to call function in loop and save data in cell
    By Pradeepg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2014, 06:22 AM
  4. [SOLVED] Getting an error when trying to call a function from a sub, with string value of cell
    By RebelScum in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-21-2012, 06:21 AM
  5. Call user function from Excel Cell
    By suman.biswas in forum Excel General
    Replies: 2
    Last Post: 09-17-2009, 02:31 AM
  6. [SOLVED] [SOLVED] Call a function when a cell changes
    By henpat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2005, 09:30 AM
  7. Call VBA function from cell
    By donesquire in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2005, 01:06 AM

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