+ Reply to Thread
Results 1 to 10 of 10

add totals via drop down menu

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    add totals via drop down menu

    hi
    please excuse the crude spreadsheet attached but it gets the message across
    im looking for cell j3 to add up al the things in row 3
    so in the attached case it will come to £3.00
    you will understand why from the quantities
    it anyone could hep or has questions please ask
    Attached Files Attached Files
    Last edited by excellentexcel; 01-15-2009 at 04:59 PM.

  2. #2
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    possibly a vlookup function???

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Not sure how you get £3.00 if would expect £1.80 maybe...
    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.

  4. #4
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    hi nbvc
    hope you are well
    well there are 3 (cell c3) x chocolate @ £0.50p each = £1.50
    1 (cell e3) x sweet = £0.30
    2 (cell g3) x drink @ £0.60p each = £1.20

    so cell j3 total is £3

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I don't see G3 filled in....

    anyways...try this formula:

    =SUM(IF(ISNUMBER(SEARCH($L$3:$L$7,B3:H3)),$M$3:$M$7)*IF(ISNUMBER(SEARCH(B3:H3,$L$3:$L$7)),C3:I3))
    confirmed with CTRL+SHIFT+ENTER and copied down.

  6. #6
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    nbvc
    my apologies
    in the one id saved i hadnt filled in g3
    the formula works well so thank you for that
    can i ask why the formula was entered with ctrl+shift+enter?
    whats does that do to do it that way??
    regards

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    It's a special Array formula...

    See here for a good explanation...

    http://www.cpearson.com/excel/ArrayFormulas.aspx

  8. #8
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    thanks very much
    time for a read

  9. #9
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    nbvc
    if we say the sheet is clean
    is there any way in which you can set a default into the qty cell (cell c3) of 1 if an entry is made into cell b3 and the user can over ride if needs be?

    regards

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by excellentexcel View Post
    nbvc
    if we say the sheet is clean
    is there any way in which you can set a default into the qty cell (cell c3) of 1 if an entry is made into cell b3 and the user can over ride if needs be?

    regards
    Once you overwrite it, it won't go back unless you are using this as a template and only want the 1's at the start and don't care if users change as long as you have the template..... Then you can use formulas....

    But...I think you'll be better off with a VBA worksheet Event macro for that...

    Post the question separately in the Programming forum.
    Last edited by NBVC; 01-15-2009 at 05:14 PM.

+ 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