Results 1 to 4 of 4

Modify a Function to add an extra condition

Threaded View

  1. #3
    Registered User
    Join Date
    09-11-2008
    Location
    Ottawa
    Posts
    42
    Hi,

    Thank you for answering.

    I will try to explain what I am trying to do. Please bear with me.

    OK,

    I have column A, which is varTitles in your code. When the code runs it will put the varCode results in column B. I am going to name some of the items in varCode slightly differently (ie JTf Blk I, JTF Blk II, etc depending on the date in column N). If column B does not reference column N then it will not give the results I am looiking for.

    I thought some sort of IF...Then statement would work, such as If Column B is = "Test" & Column N = "6 Oct 2009" then "A-Help". This comparison is done on the same row for column B and column N.


    I guess I would need an array for the varTitles, varCode and varDates?

    I am not a programmer so if you know how to set up a framework for this, and I can fill in the data, it would be greatly appreciated.

    I am trying to learn this VBA, but as I am sure you can appreciate it is not easy, especially if you do not have an aptitude for it (such as me)!!



    Thank you for any help.
    Last edited by King_Quake; 10-03-2008 at 02:25 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. function to extra data from cells
    By memphis0607 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2008, 12:02 PM
  2. Function recognizes two columns and adds total of two other columns
    By grafx77 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-18-2007, 09:09 AM
  3. Analysis Toolpak Function XIRR and VBA - XL 2007
    By rvExcelNewTip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2007, 04:35 AM
  4. Exit Function doesn't break out of For loop?
    By odeno in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2007, 11:51 AM
  5. Function and Personal.xls
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2007, 12:32 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