+ Reply to Thread
Results 1 to 4 of 4

Copy value in a cell to another cell based on value in a third cell, HAS A Bug.

  1. #1
    Registered User
    Join Date
    10-21-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Copy value in a cell to another cell based on value in a third cell, HAS A Bug.

    Hi All,

    I have marked as SOLVED “Copy value in a cell to another cell based on value in a third cell”, I have decided to start a new thread with basically the same title.

    Upon testing it further I think I have come up against a “bug”.
    It works fine until I do the following (in the uploaded workbook).


    Row 4 to row 6 have been filled with Payments and categories to show it works fine.

    Now in row 7 enter as follows: A7=10, B7=1 , now enter C7=10, the result is a 1 in T7 ( ie category 10, is not expected ).

    Notice that whenever payment =10, category =1,2, 3 etc, payment =10, the category value is added to the 10th column T.

    I Hope someone can come up with a solution to this “bug”.

    Cheers,
    Steve

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Copy value in a cell to another cell based on value in a third cell, HAS A Bug.

    Remove by JT

    See next post
    Last edited by JohnTopley; 05-22-2018 at 10:44 AM.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,196

    Re: Copy value in a cell to another cell based on value in a third cell, HAS A Bug.

    Try this

    =SUMPRODUCT(($A4:$G4)*($A$3:$G$3="Payment $")*($B4:$H4=K$3)*($B$3:$H$3="Category"))

    and remove extra character at the end of each "Category" headings

    I should have used this in the first place: my apologies
    Last edited by JohnTopley; 05-22-2018 at 11:12 AM.

  4. #4
    Registered User
    Join Date
    10-21-2011
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Copy value in a cell to another cell based on value in a third cell, HAS A Bug.

    Hi John,
    That does the trick. Thanks again for your invaluable help.
    I am getting to understand the SUMPRODUCT function a lot better.
    Cheers,
    Steve

+ 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. Copy and Paste Cell X number of times based on Adjacent Cell
    By GabeGabe in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-07-2016, 11:40 AM
  2. Replies: 6
    Last Post: 11-19-2015, 09:36 PM
  3. [SOLVED] copy cell values in one cell based on value of adjacent cells
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2014, 08:48 AM
  4. Replies: 2
    Last Post: 01-31-2014, 09:34 AM
  5. Replies: 8
    Last Post: 01-17-2014, 05:10 AM
  6. Copy Cell to next empty cell on other worksheets based on date and category
    By mainebf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2012, 02:43 PM
  7. Replies: 3
    Last Post: 07-15-2010, 08:49 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