+ Reply to Thread
Results 1 to 7 of 7

More Efficient way of updating data?

  1. #1
    Forum Contributor
    Join Date
    09-01-2008
    Location
    Australia
    Posts
    108

    More Efficient way of updating data?

    Hi All,
    I am trying to update a column but this method is very slow if we are dealing with 50k of records.
    Is there a better way of doing it?

    If ActualV = "Car" Then Range("B" & X).Value = "Yes"
    If ActualV = "Plane" Then Range("B" & X).Value = "Yes"
    If ActualV = "Motorbike" Then Range("B" & X).Value = "Yes"
    If ActualV = "Yacht" Then Range("B" & X).Value = "Yes"
    If ActualV = "Trishaw" Then Range("B" & X).Value = "Yes"


    Thanks!
    Nironto
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: More Efficient way of updating data?

    Is this any quicker?

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: More Efficient way of updating data?

    double post !!!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,592

    Re: More Efficient way of updating data?

    Try
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-01-2008
    Location
    Australia
    Posts
    108

    Re: More Efficient way of updating data?

    Hi Crooza,
    I checked that I only posted once. Your solution does help but not much improvement.

    Regards,
    Nironto

  6. #6
    Forum Contributor
    Join Date
    09-01-2008
    Location
    Australia
    Posts
    108

    Re: More Efficient way of updating data?

    Thanks Jindon!
    This is what I need! Time taken is reduced from 3 mins to 10s!

    Regards,
    Nironto

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: More Efficient way of updating data?

    Quote Originally Posted by nironto View Post
    I checked that I only posted once.
    No mate. My post was duplicated. An idiosyncrasy of this website. I edited the second post out and explained it away as a double post.

+ 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. Replies: 8
    Last Post: 02-09-2015, 09:45 PM
  2. [SOLVED] Efficient data sourcing from other worksheets.
    By dominatro in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-06-2015, 04:42 PM
  3. Replies: 1
    Last Post: 05-14-2014, 08:24 AM
  4. Help Making Data More Efficient?
    By jhern87 in forum Excel General
    Replies: 4
    Last Post: 02-27-2014, 02:34 AM
  5. Most efficient way to save data?
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2012, 10:30 PM
  6. Most Efficient Way to Write Out Data
    By ld_pvl in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-09-2011, 04:01 PM
  7. efficient data entry
    By cporter5 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2010, 07:13 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