Results 1 to 10 of 10

VBA with sum and vlook up

Threaded View

powelly04 VBA with sum and vlook up 03-13-2015, 02:13 PM
Kaper Re: VBA with sum and vlook up 03-13-2015, 02:21 PM
Kaper Re: VBA with sum and vlook up 03-13-2015, 02:27 PM
Richard Buttrey Re: VBA with sum and vlook up 03-13-2015, 02:32 PM
powelly04 Re: VBA with sum and vlook up 03-13-2015, 02:32 PM
Kaper Re: VBA with sum and vlook up 03-13-2015, 02:53 PM
powelly04 Re: VBA with sum and vlook up 03-13-2015, 03:02 PM
Kaper Re: VBA with sum and vlook up 03-13-2015, 03:24 PM
powelly04 Re: VBA with sum and vlook up 03-13-2015, 03:31 PM
Kaper Re: VBA with sum and vlook up 03-13-2015, 05:59 PM
  1. #1
    Registered User
    Join Date
    10-23-2014
    Location
    Liverpool
    MS-Off Ver
    2010
    Posts
    12

    Lightbulb VBA with sum and vlook up

    Sheet 1

    A1 has a name (Bob)
    A2 has a value (10)

    Button 1


    Sheet 2

    John 0
    Dave 0
    Ben 0
    Bob 0

    I need it so when someone clicks button 1 its added the value of cell a2 in sheet 1 to the next collum to the right of the name in collum a1 in sheet 1.

    example if they clicked now sheet 2 would then look liek this:-

    John 0
    Dave 0
    Ben 0
    Bob 10

    clicked it again BOB would go to 20 and so on

    I got to this but now getting an error:-

    Private Sub CommandButton1_Click()

    Application.WorksheetFunction.VLookup("sheet2!e11", "Time!a2:b99", 2, "Calculator!e11") = Application.WorksheetFunction.VLookup("sheet2!e11", "Time!a2:b99", 2, "Calculator!e11") + Range("g8")
    End Sub
    Last edited by powelly04; 03-13-2015 at 02:22 PM. Reason: Rules - sorry :(

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VLOOK-UP Help
    By dsheets05 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 06:24 AM
  2. if then or vlook up
    By denfan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-03-2014, 04:03 PM
  3. Need help with vlook up.
    By JOONA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 07:09 AM
  4. [SOLVED] VBA Vlook Up
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2013, 05:35 AM
  5. vlook up
    By arcticale in forum Excel General
    Replies: 1
    Last Post: 01-25-2006, 05:40 PM

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