+ Reply to Thread
Results 1 to 9 of 9

Input a range of values into a cell and return the values for each loop

  1. #1
    Registered User
    Join Date
    05-24-2018
    Location
    Australia
    MS-Off Ver
    2013 Windows
    Posts
    16

    Input a range of values into a cell and return the values for each loop

    Hi,

    Say if I have a range of values in A19:A119 and I want to input them into cell A17 and then I want the results of cells A11,A12,A13,A14 and A15 pasted into columns C,D,E,F,G how would I do this using a VBA style loop.

    Cheers,
    GC

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Input a range of values into a cell and return the values for each loop

    Attach a workbook that shows before and after.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Input a range of values into a cell and return the values for each loop

    Please upload sample of your file with the desired output
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Registered User
    Join Date
    05-24-2018
    Location
    Australia
    MS-Off Ver
    2013 Windows
    Posts
    16

    Re: Input a range of values into a cell and return the values for each loop

    Hi Mate,

    Attached as requested under Workbook Tab 3.

    Regards,
    GC
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Input a range of values into a cell and return the values for each loop

    Try something like that
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-24-2018
    Location
    Australia
    MS-Off Ver
    2013 Windows
    Posts
    16
    Yeah this seems to be on the right track however I want it to run all of the values in A19:A119 at once and if that’s not possible when each value for A17 and the macro is run the results are entered in the row below not just replace what’s already there.

    Quote Originally Posted by YasserKhalil View Post
    Try something like that
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Input a range of values into a cell and return the values for each loop

    Can you attach some of your desired output?

  8. #8
    Registered User
    Join Date
    05-24-2018
    Location
    Australia
    MS-Off Ver
    2013 Windows
    Posts
    16

    Re: Input a range of values into a cell and return the values for each loop

    Never mind I have found a more optimal high level solution to my problem. Cheers for you help though.

    GC

  9. #9
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Input a range of values into a cell and return the values for each loop

    Glad you solved it .. I think it will be better if you share your solution

+ 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. Check range for values and return list of found unique values
    By kian82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2017, 04:45 AM
  2. Replies: 4
    Last Post: 10-01-2015, 11:01 AM
  3. Replies: 13
    Last Post: 10-13-2014, 02:00 AM
  4. Replies: 1
    Last Post: 02-12-2014, 05:29 AM
  5. Need macro to loop through input cell values and copy output value
    By jaf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2011, 02:59 PM
  6. search a cell for values in a range, return values found
    By carpe.cervisiam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2011, 12:52 PM
  7. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM

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