+ Reply to Thread
Results 1 to 4 of 4

Multievaluation sub Has 3 different evaluations

  1. #1
    Forum Contributor
    Join Date
    06-06-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    129

    Multievaluation sub Has 3 different evaluations

    Hello all,

    I am in need of help again and as a noob all help is appreciated.
    I have attached a sample file and below is my code.
    The code should be to evaluated columns T, X and AB.

    1. Check amount entry into column T
    2. If check amount is = to Fee ($150.00) then variable CheckTotal equals column T Stop entry process.
    3. If CheckTotal is greater than Fee then subtract from Fee from CheckTotal and the result is placed into column G, Stop process.
    4. If CheckTotal is less than Fee the column U equals Entry #
    5. Check amount entry into column X
    6. CheckTotal equals column T+X
    7. If CheckTotal amount is = to Fee ($150.00) then Stop entry process.
    8. If CheckTotal is greater than Fee then subtract Fee from CheckTotal and the result is placed into column G, stop process.
    9. If CheckTotal is less than Fee the column Y equals Entry #
    10. Check amount entry into column AB
    11. CheckTotal equals column T+X+AB
    12. If CheckTotal amount is = to Fee ($150.00) then Stop entry process.
    13. If CheckTotal is greater than Fee then subtract Fee from CheckTotal and the result is placed into column G, Stop entry process.

    I have been trying variations for two days to get my code to work but I just can’t seem to get it solved. You may ask why have three checks and the answer is that one of the retailers will sell our customers three $50.00 checks for the total of $150.00. Some come in with checks for $100.00 and $50.00. The some bring in checks for over $150.00 so we don’t always have exact amounts.
    Thanks in advance for all help received.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multievaluation sub Has 3 different evaluations

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor
    Join Date
    06-06-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    129

    Re: Multievaluation sub Has 3 different evaluations

    Thanks ALPHAFROG so much! I am new to VBA and would like to know how you picked the case format for my problem? Is there a way to approach coding types that I should be looking for in each type of situation I am writing code for (i.e. what I am trying to accomplish with the code, etc.) ?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multievaluation sub Has 3 different evaluations

    You're welcome. Glad it worked out.

    Understanding when to use something like Case or any other commend is just a matter of experience.

    The Case function works like an If-ElseIf function which would work just as well.

    Please Login or Register  to view this content.

+ 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. Formula for Evaluations Due and Past Due Dates
    By Mimi8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-11-2014, 04:52 PM
  2. Replies: 1
    Last Post: 03-09-2013, 02:55 PM
  3. multiple evaluations in one formula utilizing percentages
    By hmoorex3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2013, 01:54 PM
  4. Employee evaluations
    By writeguy37 in forum Excel General
    Replies: 7
    Last Post: 03-15-2012, 04:53 PM
  5. Best way to handle complex evaluations
    By gilligan8 in forum Excel General
    Replies: 0
    Last Post: 10-15-2011, 10:50 PM
  6. Replies: 14
    Last Post: 10-11-2007, 04:13 PM
  7. How to chart a bunch of Evaluations
    By captainkwe in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-15-2006, 02:31 AM

Tags for this Thread

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