+ Reply to Thread
Results 1 to 7 of 7

Fill in Blank Cells Based on Other, Present Information

  1. #1
    Registered User
    Join Date
    07-25-2018
    Location
    Hattiesburg, MS
    MS-Off Ver
    365 ProPlus
    Posts
    5

    Fill in Blank Cells Based on Other, Present Information

    Hello All,

    I import various banking payment details into my company's database. Often, banks agree to include our Supplier IDs on transaction statements so that we can more easily manage the data, match cases etc. However, when multiple partial payments are swiped, or when a payment is cancelled, there will be multiple line entries on the Excel report, and only one entry per Control Number will include the Supplier ID. The additional entries for the same Control Number will have blank cells where Supplier IDs should be present. It should also be noted that supplier ID is not always present in the earliest transaction for that control number, and is not always present in the top entry for each control number. A Supplier ID is present for all Control Numbers, but seems to be present at random. Below is the type of data I receive (this is not actual banking data, obviously - completely made up). Column letters and titles included, so the first control number listed is in cell A2. In case the below does not post correctly, I have included a Workbook. The workbook contains 2 sheets, one titled "Statement Received" and one title "Finished Product"

    A B C
    Control Number Supplier Name Supplier ID
    503056 John's Computer Store 100
    503056 John's Computer Store
    503058 Susan's Law Office
    503058 Susan's Law Office 200
    503058 Susan's Law Office
    503059 Kelly's Auto Repair
    503059 Kelly's Auto Repair 300


    Below is the finished product that I would like to see.

    A B C
    Control Number Supplier Name Supplier ID
    503056 John's Computer Store 100
    503056 John's Computer Store 100
    503058 Susan's Law Office 200
    503058 Susan's Law Office 200
    503058 Susan's Law Office 200
    503059 Kelly's Auto Repair 300
    503059 Kelly's Auto Repair 300


    These reports are growing, so finding a way to fill in blank cells based on the Supplier ID that is already present for each Control Number will help immensely. Thank you for taking the time to look!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Fill in Blank Cells Based on Other, Present Information

    Try:

    =IFERROR(INDEX('Statement Received'!$C$2:$C$8,MATCH(1,INDEX(('Statement Received'!$C$2:$C$8<>"")*('Statement Received'!$A$2:$A$8='Finished Product'!A2),0),0)),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-25-2018
    Location
    Hattiesburg, MS
    MS-Off Ver
    365 ProPlus
    Posts
    5

    Re: Fill in Blank Cells Based on Other, Present Information

    I think this did the trick, Glenn! Thank you very much! So, I can simply insert a new column next to the Supplier ID column of statements, run what you provided above (amended, of course), copy and paste values, and I should be good to go.
    I sincerely appreciate your help!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Fill in Blank Cells Based on Other, Present Information

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Fill in Blank Cells Based on Other, Present Information

    An after thought.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Registered User
    Join Date
    07-25-2018
    Location
    Hattiesburg, MS
    MS-Off Ver
    365 ProPlus
    Posts
    5

    Re: Fill in Blank Cells Based on Other, Present Information

    This works as well, and references just the one sheet. Thanks for the input, Dave!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Fill in Blank Cells Based on Other, Present Information

    You're welcome. Glad to help, and thanks for the feedback.

+ 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. Macro to fill present date in selected cells
    By aman2059 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2014, 11:35 AM
  2. [SOLVED] Macro to fill blank cells in column A based on non-blank cells
    By ktalamantez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2014, 02:47 PM
  3. Auto fill worksheet cells based on certain criteria w/out leaving blank rows.
    By Txprospector in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2014, 07:35 AM
  4. [SOLVED] How to fill only blank cells based on another worksheet
    By meprad in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-26-2013, 04:13 AM
  5. Fill blank cells with data directly above that blank cell
    By gibson2503 in forum Excel General
    Replies: 3
    Last Post: 06-05-2013, 10:07 AM
  6. How to color-fill blank cells, then once data is entered cell is no-fill
    By hatemail13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 07:57 PM
  7. [SOLVED] Search and fill blank cells based on various conditions
    By johnny_tc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 09:40 AM

Tags for this Thread

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