+ Reply to Thread
Results 1 to 2 of 2

What is the syntax to reference a number in a cell using a variable?

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Oak Park IL
    MS-Off Ver
    Excel 2010
    Posts
    1

    What is the syntax to reference a number in a cell using a variable?

    Newbie to Excel VB here. I'm making a loop where the integer Row represents the row I'm working on.

    For a hypothetical example, I want to take the value of each number in column B and add them together to be displayed in Cell E5 (I know the SUM function would work better, but this is just an example). Here's some psuedocode.

    Please Login or Register  to view this content.
    }

    What's the proper syntax for B|Row?
    Last edited by Cutter; 08-09-2012 at 06:24 PM. Reason: Added code tags

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: What is the syntax to reference a number in a cell using a variable?

    Hi
    select youe cells in column B and run this
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

+ 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