+ Reply to Thread
Results 1 to 3 of 3

Auto Cell Detect

  1. #1
    Registered User
    Join Date
    07-29-2009
    Location
    mackay
    MS-Off Ver
    Excel 2010
    Posts
    41

    Auto Cell Detect

    Hi Guys,

    I'm working on a little project and I've come to another brick wall in terms of programming the Macro. I'm trying to simply multiply any cell that is in a set range by 1.8515. I say "In Range" because there are empty cells between the cells with values and if I apply to an entire column the empty cells result in having 1.8515 in them which I do not want.

    Layout:The Values to be converted are in Column N

    Now the final product (multiplying column N value by 1.8515) must be located in column C.

    I was simply going to use a "Product=NCell, 1.8515" then a Auto fill but when i auto fill it selects all the cells with no values in them also which results in having 1.8515 in them which is not a option. Is there a way so that the only cells modified in column C are the ones that only have values in column N.

    If i have not explained this well i have uploaded a sheet showing how it is layed out.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Auto Cell Detect

    Why not use a formula? In C1 and down, =if(n1, n1*1.8, "")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-29-2009
    Location
    mackay
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Auto Cell Detect

    This is part of a Macro which automattically sets up the sheet and performs the equations and this is another step being implemented into it. And thankyou what you provided i can implement in, i didn't know you could have if statements in the actual equations.

    Thankyou

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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