+ Reply to Thread
Results 1 to 5 of 5

VBA: Multiply Cells by Value but Skip Blanks

  1. #1
    Registered User
    Join Date
    06-23-2015
    Location
    Austin
    MS-Off Ver
    MAC 2011
    Posts
    18

    VBA: Multiply Cells by Value but Skip Blanks

    Excel Sheet attached.

    What I want to do is multiply each number in a range by a defined value. The problem I have is I also want:

    -To do nothing to blank cells
    -To start multiplying at a certain point in the range which changes daily (in my spreadsheet, I want to start with the first cell that corresponds to "Not Yet Played")

    Here's what I have got so far:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-20-2017
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: VBA: Multiply Cells by Value but Skip Blanks

    Good thing you provided a sample maybe you will get some help. Good luck.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA: Multiply Cells by Value but Skip Blanks

    Does this help?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-23-2015
    Location
    Austin
    MS-Off Ver
    MAC 2011
    Posts
    18

    Re: VBA: Multiply Cells by Value but Skip Blanks

    This is almost perfect, but when it performs the multiplication (.Value*y), it uses the value in the first cell of the range, for the entire range. As in, its not taking the values as they come, only the very first one, so all the numbers end up the same. Its like .Value is somehow a constant?

    Any ideas.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA: Multiply Cells by Value but Skip Blanks

    Yes. Need to do a for each loop with Range("wager").SpecialCells(2, 1). I have to run right now. If no one else helps or you need help, I can continue tomorrow morning.

+ 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] Comparing cells with a reference source & skip blanks
    By namialus in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-04-2014, 10:57 PM
  2. how to skip cells that appears as blanks ?
    By igneous2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2014, 04:05 AM
  3. Replies: 4
    Last Post: 03-08-2014, 02:03 PM
  4. skip NON blank cells and fill only blanks
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2012, 11:33 AM
  5. Skip Blanks
    By Streng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2009, 04:12 PM
  6. Skip blanks
    By Art MacNeil in forum Excel General
    Replies: 6
    Last Post: 01-15-2006, 02:55 PM
  7. [SOLVED] Paste Special Skip Blanks not skipping blanks, but overwriting...
    By gsrosin in forum Excel General
    Replies: 0
    Last Post: 02-22-2005, 12: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