+ Reply to Thread
Results 1 to 8 of 8

array practice

  1. #1
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    array practice

    Dear Pros,


    how would you solve the issue in the attachment with arrays?


    IŽd like to make a text or value compare in column E. And if there is a match I would like to increase the value next to it by 10
    and print the value in column F...


    thank you for your help!
    Attached Files Attached Files
    Last edited by peterschein; 02-16-2020 at 05:00 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: array practice

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: array practice

    Quote Originally Posted by peterschein View Post
    ... with arrays ...

    Do you mean "array variables" by writing "array", or just a certain area of ​​the sheet in the form of a table/range/array ?
    This can be done without array variables ...

  4. #4
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: array practice

    I would like to fill up the array with the values and then print out the results.
    I think it's called the array variable. like with dynamic lbound and ubound...

    thanks for the help!

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: array practice

    Is anything (below) an "array" for you ?
    Please Login or Register  to view this content.
    Last edited by mjr veverka; 02-17-2020 at 09:10 PM.

  6. #6
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: array practice

    wow thanks a lot porucha vevrku!
    yes I ment the last one!

    thank you a lot!

    I often hear that working with arrays like your third solution is the best way because it is faster..but for me your second solution is so much easier...


    I would still have one question: what exactly does your last line? and how?
    I see that if I comment it out all the values are the first value (138).

    thank you for your kind help!!

  7. #7
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: array practice

    ??? "Last line ... in the third macro" ???

    Please Login or Register  to view this content.

    This is the end of Sub procedure

    Or maybe this (?)
    Please Login or Register  to view this content.
    (?)

    "Starting from cell 'D1', in an area of ​​size adapted to the number of "rows" (first dimension) and "columns" (second dimension) in the variable 'arr', enter the content of this variable, and then delete contents of this variable (arr = Empty)""

  8. #8
    Forum Contributor
    Join Date
    10-26-2018
    Location
    Vienna, Austria
    MS-Off Ver
    2016 professional
    Posts
    148

    Re: array practice

    thank you for your help and time!

+ 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. [SOLVED] Basic Dynamic Array practice
    By peterschein in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-09-2020, 05:56 PM
  2. [SOLVED] is an array of arrays awkward or desirable programming practice?
    By MrShorty in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-08-2015, 04:47 AM
  3. Array Size & Dimensions Best Practice
    By pipsturbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2011, 11:34 AM
  4. How to practice VBA?
    By Kayote in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-11-2009, 06:55 AM
  5. [SOLVED] Best Practice
    By CWillis in forum Excel General
    Replies: 2
    Last Post: 06-27-2006, 11:45 AM
  6. Best Practice
    By Ardus Petus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2006, 11:14 PM
  7. best practice?
    By hsibbs in forum Excel General
    Replies: 7
    Last Post: 06-17-2005, 12:05 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