+ Reply to Thread
Results 1 to 4 of 4

how do i multiply based on 2 column criteria?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    how do i multiply based on 2 column criteria?

    I have a formula that is dependent on what is in 2 columns, i need it to multiply by 2 for a certain criteria and 4 for the other, I am struggling to get this to work without adjusting everything by hand

    Your advice would be appreciated

    I have attached a sheet

    Thank you
    Attached Files Attached Files
    Last edited by gjjh25; 11-24-2011 at 09:01 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: how do i multiply based on 2 column criteria?

    maybe:

    =IF(OR(ISBLANK(E6),E6="Gully",E6="Dragout"),SUM(I6)-(($J$5*J6*2)+($K$5*K6*2)+($L$5*L6*2)),SUM(I6)-(($J$5*J6*4)+($K$5*K6*4)+($L$5*L6*4)))

  3. #3
    Forum Contributor
    Join Date
    09-06-2011
    Location
    manchester england
    MS-Off Ver
    Office 365
    Posts
    307

    Re: how do i multiply based on 2 column criteria?

    Thank you very much.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: how do i multiply based on 2 column criteria?

    I think that only takes into account of Column E containing "","Dragout", or "Gully".
    If you also need this to be a condition for Column G then try this in M2
    =I6-(SUMPRODUCT($J$5:$L$5,J6:L6)*(IF(AND(ISERROR(MATCH(E6,{0,"Dragout","Gully"},0)),ISERROR(MATCH(G6,{0,"Dragout","Gully"},0))),4,2)))
    Drag/Fill Down as required.

    See the attached.
    Attached Files Attached Files
    Last edited by Marcol; 11-24-2011 at 10:00 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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