+ Reply to Thread
Results 1 to 7 of 7

Fill down numbers into column D using column C

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Fill down numbers into column D using column C

    Looking for formula to fill down numbers (1s and 0s) into column D using column C as basis. See attached file. Sample below as well. Thanks.


    Formula Explanation
    Firm Name: Yukon
    For example, firm name Yukon is from A2:A9 and Sales 1 column C2=1 and C3=1 and C4:C9=Blank (""). Formula should be setup to return D2:D9=1 for Yukon.

    Firm Name: 5D Systems Corp.
    For example, firm name 5D Systems Corp. is from A26:A34 and Sales 1 column C26:C34="" (blank). Formula should be setup to return D26:D34= 0 for 5D Systems Corp..

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Fill down numbers into column D using column C

    Try putting this in D2 ~
    Please Login or Register  to view this content.
    . This will work, BUT you MUST have your firm names EXACTLY the same... so Koko Cisco is NOT the same as KoKo Cisco (has an extra space before Cisco.

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Fill down numbers into column D using column C

    queuesef: The firm names are more than what I have in the sample. Firm name is over 10,000 and this formula will not work. Please take a look and adjust. Thanks.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Fill down numbers into column D using column C

    D2=IF(A2=A1,D1,IF(COUNTIFS(A$2:A$34,A2,C$2:C$34,1),1,0))
    Try the above, copy and paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Fill down numbers into column D using column C

    I answered your question as is. Please try to take what is there and revise it yourself. You did NOT provide more info/Firms, NOR did you provide any pattern. Base on your limited info, I had solved the problem. You need to have more info OR a PATTERN. Vba COULD be an answer....vLookup could also work....you would need to create Unique list of names and the corresponding value for that firm. In Future, please provide enough info to solve your issue and it would be easier. Most people don't like to come back and revisit a question that was poorly asked.

  6. #6
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Fill down numbers into column D using column C

    samba_ravi: Outstanding formula. Works like charm. Thanks.

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Fill down numbers into column D using column C

    queuesef: Great solution based on requirements and explanation. Thanks.

+ 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. Need to align 2 id numbers across files and then fill in corresponding column
    By HumansByData in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2019, 12:25 PM
  2. [SOLVED] Fill Series of Sequential Numbers in Column A Based on Last Value in Column B - VBA
    By CC268 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2017, 01:09 PM
  3. Fill cell column with numbers
    By phlprinting in forum Excel General
    Replies: 4
    Last Post: 01-02-2014, 12:48 AM
  4. How to fill a column of cells with consecutive numbers ?
    By M-Ray in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2013, 09:59 AM
  5. [SOLVED] Auto Fill a Column with repeating numbers
    By gobeavers in forum Excel General
    Replies: 3
    Last Post: 12-26-2012, 02:47 PM
  6. Fill a column with sequential numbers
    By GISDude in forum Excel General
    Replies: 4
    Last Post: 05-01-2006, 09:45 AM
  7. Replies: 2
    Last Post: 01-26-2005, 11:06 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