+ Reply to Thread
Results 1 to 7 of 7

(A level applied ICT):VBA Cell referencing, VLOOKUP and IF statements in one line

  1. #1
    Registered User
    Join Date
    10-02-2011
    Location
    Durham
    MS-Off Ver
    Excel 2007
    Posts
    10

    (A level applied ICT):VBA Cell referencing, VLOOKUP and IF statements in one line

    I want to create a code on VBA for a swimming competition.
    I want the code to state if a cell in a worksheet says "New Record", It would use a VLOOKUP to look at the name of event besides it and then to replace the new record time ontop of the current record.

    Currently, I have

    Please Login or Register  to view this content.
    Which doesn't seem to work

    There are two sheets involved, the "New Record" worksheet which is a hidden worksheet where everything is laid neatly and the "current records 6 lane events" worksheet which is also hidden as this sheet is used to be compared to see if any times have broke the record. the cell B2 is an IF function which defines whether the time for row 2 has broke the record. Cell A2 would be the name of the event. The range of A2:D17 is the full list of the records and row 3 shows the times of the current record and the last C2 is the time which is used to break the current record.

    Any help would be appreciated
    Last edited by kelvin.l1994; 10-02-2011 at 12:33 PM.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: VBA help (A level applied ICT)

    I fear your threadtitle doesn't meet the forum rules requirements nor matches the content of your post.



  3. #3
    Registered User
    Join Date
    10-02-2011
    Location
    Durham
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: VBA help (A level applied ICT)

    Quote Originally Posted by snb View Post
    I fear your threadtitle doesn't meet the forum rules requirements nor matches the content of your post.
    Sorry, new to this, does the title suffice now?

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: VBA help (A level applied ICT): Cell referencing, VLOOKUP and IF statements in on

    Mid(title,instr(title,":")+1) would be better...

  5. #5
    Registered User
    Join Date
    10-02-2011
    Location
    Durham
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: VBA help (A level applied ICT): Cell referencing, VLOOKUP and IF statements in on

    Quote Originally Posted by snb View Post
    Mid(title,instr(title,":")+1) would be better...
    I don't understand, sorry?

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: VBA help (A level applied ICT): Cell referencing, VLOOKUP and IF statements in on

    If you read it carefully and apply it to your threadtitle; some 'speak' VBA in this forumcorner...

  7. #7
    Registered User
    Join Date
    10-02-2011
    Location
    Durham
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: VBA help (A level applied ICT): Cell referencing, VLOOKUP and IF statements in on

    Quote Originally Posted by snb View Post
    If you read it carefully and apply it to your threadtitle; some 'speak' VBA in this forumcorner...
    Still no idea, but some help on the topic would be nice

+ 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