+ Reply to Thread
Results 1 to 2 of 2

Need to automatically insert dollar amount in the column depending on the city in column A

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    Va Beach
    MS-Off Ver
    Excel 2007
    Posts
    1

    Need to automatically insert dollar amount in the column depending on the city in column A

    Need Help.

    I receive Excel spreadsheet on a weekly basis. The spreadsheet contains the following information:

    A = City Name, B = Court Date, C = Case #, D = Plaintiff, E = Defendant, etc.

    What I am trying to do is to automatically put a service charge/dollar amount in Column X, which is dependent on the value in Column A.

    For example: If the cities are Norfolk, Va Beach, Hampton, Chesapeake, etc, the amount to automatically be inserted is $10
    If the cities are Richmond, Henrico, etc, the amount to be inserted is $12.

    I am very new to Excel and/or computers. I would greatly appreciate any assistance.

    Lastly, once the amounts are automatically inserted, I need a grand total at the bottom.

    Please help.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need to automatically insert dollar amount in the column depending on the city in colu

    If you have a large enough list of possible cities and values, then you should create a table somewhere on the side. The first column containing all the possible cities and the next column containing the correspond amounts.

    So let's assume you put that list in range AA1:AB100

    Then in X2 you would use VLOOKUP()

    eg. =VLOOKUP(A2,$AA$1:$AB$100,2,FALSE) and copy down the column (you do this by clicking and holding the little black square at bottom left corner of the cell with the formula, and dragging it down to bottom of list).

    To get Grand Total use SUM().. e.g. =SUM(X2:X100) where X100 is last cell before the cell you enter the SUM formula in.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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