+ Reply to Thread
Results 1 to 3 of 3

Extending previous 'conditional statements solution'

Hybrid View

gigaworks Extending previous... 01-30-2010, 09:16 AM
zbor Re: Extending previous... 01-30-2010, 09:49 AM
Richard Buttrey Re: Extending previous... 01-30-2010, 09:51 AM
  1. #1
    Registered User
    Join Date
    01-09-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Extending previous 'conditional statements solution'

    As always I'm very greatful for all your help!



    Hello,

    A few days ago I posted a problem which received a very quick and helpful response from Paul (thanks Paul!) which involved the use of SUMPRODUCT and what I believe is called a double unary operator (--). Here's the original post with Paul's solution:

    http://www.excelforum.com/excel-gene...-new-post.html

    I've since discovered that a previously unknown column of data (I'm transcribing data from paper documents) needs to be included in the calculations. Specifically, the new column of data (shown in yellow in the attached example) has to be taken into consideration when counting product quantities. An explanatory pseudo code statement, also appearing in yellow in the example sheet, describes what I'm hopelessly trying to achieve.

    Thank you yet again for taking the time to help out.
    Attached Files Attached Files
    Last edited by gigaworks; 01-30-2010 at 10:41 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Extending previous 'conditional statements solution'

    Do you mean this?

    =SUMPRODUCT(--($A$2:$A$13=$F9),--($C$2:$C$13=RIGHT(G$7;1)+0),$D$2:$D$13/5)
    Never use Merged Cells in Excel

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extending previous 'conditional statements solution'

    Hi,

    In G9 copied across and down
    =SUMPRODUCT(--($A$2:$A$13=$F9),--($C$2:$C$13=RIGHT(G$7,1)+0)*($D$2:$D$13/5))
    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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