+ Reply to Thread
Results 1 to 2 of 2

Update Code to work with multiple rows

  1. #1
    Registered User
    Join Date
    10-12-2014
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    54

    Update Code to work with multiple rows

    Hi all,

    This will be my first post and I'm in quite a pickle. I've been wrecking my brain trying to work this problem out. Basically I want to use an IF statement to check Range 1 (about 1000 entries) and compare Range 2 (only 6 entries). Range 2 has the sizes that corresponds to a price, so the figures in Range 1 will be compared and output a price onto another cell. Here is a code below:

    Please Login or Register  to view this content.
    I know between 'For' to the end is kinda wrong but I haven't had much luck on solving this and been googling for a solutions but still have no luck. If there is any advice much appreciated.

    I have placed a sample workspace on how I would like it to work, basically the girth sizes are there, I just need them to be compared to the second sheet labelled "Rates" and the "supply and install rate"(column G), the VBA is there, I have changed a few things, the only concern is the "Calc_stuff" module which is eating me.

    I would rather this on VBA, I wasnt too sure about the if statements on ranges and remembered some limitations using formulas. Also if its no biggie, you can move the thread to the appropriate section I assume "Excel Programming / VBA / Macros"?

    calcs.xlsm

    EDIT: the code works for Row 9 at the moment, I want to be able to do this for multiple rows and in future I can add more and the same processes can be applied again.
    Cheers
    Last edited by JBeaucaire; 10-13-2014 at 11:54 AM. Reason: Merging posts to set replies to zero

  2. #2
    Registered User
    Join Date
    10-12-2014
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    54

    Re: Update Code to work with multiple rows

    Wow didn't realise there was a lot of new threads popping up really quick, also is it normal for post to be modified around? It is my first time in excelforums. Also I would like to know on what I can improve on this code, I'm trying to learn VBA as much as I can and would like a few pointers.

    Cheers

+ 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] Ranges within and IF statement
    By DON_BLACK in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2013, 11:29 AM
  2. [SOLVED] If statement with 2 vlookup ranges
    By mkmed in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-02-2012, 10:52 AM
  3. IF statement - Various ranges
    By W Haymaker in forum Excel General
    Replies: 4
    Last Post: 03-18-2009, 10:30 AM
  4. IF Statement with multiple ranges
    By dawgpoundfan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2008, 10:15 AM
  5. Using data ranges in an IF statement
    By ell365 in forum Excel General
    Replies: 9
    Last Post: 08-27-2007, 10:41 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