+ Reply to Thread
Results 1 to 4 of 4

Multiple 2 Columns, condition on another column

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Multiple 2 Columns, condition on another column

    Hi,
    Please see attached, need formula at D2
    I know B and C
    Formula is driven by B="Y' and corresponded value in C
    I believe in attached it make more sense (need to multiple column C with value of B="y" in C, until next Y

    Thanks all
    Attached Files Attached Files
    Last edited by ionelz; 03-07-2021 at 09:53 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Multiple 2 Columns, condition on another column

    Try this:

    =IF(B2="Y",C2,C2*LOOKUP(2,1/(B$2:B2="Y"),C$2:C2))

    Drag copy down.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Multiple 2 Columns, condition on another column

    Please try

    =IF(B2:B18>0,1,LOOKUP(ROW(C2:C18),ROW(C2:C18)/(B2:B18>0),C2:C18))*C2:C18
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Multiple 2 Columns, condition on another column

    Thank you all, I close the Thread

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count in multiple columns if one condition is met in a different column
    By kyknifeman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-15-2020, 04:58 PM
  2. [SOLVED] Merge multiple columns into a single column with condition
    By arindamsenaxa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2017, 10:07 AM
  3. Populate one column based the condition of two other columns
    By warriorpoet7176 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-18-2014, 01:22 AM
  4. Populate 2-column data to multiple columns based on one condition
    By hcyeap in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-26-2013, 10:42 AM
  5. Replies: 4
    Last Post: 01-19-2013, 03:16 AM
  6. Iterate through multiple columns, set a condition
    By Steve24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 05:27 PM
  7. Replies: 4
    Last Post: 08-25-2010, 07:02 AM

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