+ Reply to Thread
Results 1 to 20 of 20

Lookup problem

Hybrid View

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

    Re: Lookup problem

    Before we go to the 'twist', does this formula in H5, copied down take care part of the need?

    =SUM($M5:$S5)+SUMPRODUCT(($M5:$S5=$B$5:$B$23)*$C$5:$C$23)
    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.

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Lookup problem

    Yes, apart from it only needs to sum D values, not numbers!

  3. #3
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Lookup problem

    It also needs to reference the whole table, incase duties are added, and do that vertically as well!

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

    Re: Lookup problem

    Does this, in H5, copied down take care of that?

    =SUMPRODUCT(($M5:$S5=$B$5:$B$23)*$C$5:$C$23)+SUMPRODUCT(($M5:$S5="D"&MID($B$5:$B$23,2,3)+100)*$D$5:$D$23)+SUMPRODUCT(($M5:$S5="D"&MID($B$5:$B$23,2,3)+200)*$E$5:$E$23)

  5. #5
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Lookup problem

    Perfect! Just need to sum the columns and its good to go!

    I would have aproacehd the whole spreadsheet differently, but the company is set in its ways, so I had to make it as similar to the origninal as possible!

+ 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