+ Reply to Thread
Results 1 to 13 of 13

To map old Code to New Code base on Date

  1. #1
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    285

    To map old Code to New Code base on Date

    Hi, i have to tag my old code to new code base on Date Criteria and then do a Sumif base on Date and the Old Code/New Code.

    However, i seems to be stuck. Cant think of a way to do this. In my sample, I would like to return Yellow Colour portion.

    Can anyone think of any formula to do?
    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 2406
    Posts
    44,662

    Re: To map old Code to New Code base on Date

    Do we have to get the amounts (50,000 etc) from the OLD mapping??
    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

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,913

    Re: To map old Code to New Code base on Date

    Clean all expected results and try this in M1.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    285

    Re: To map old Code to New Code base on Date

    Quote Originally Posted by Glenn Kennedy View Post
    Do we have to get the amounts (50,000 etc) from the OLD mapping??
    Yes. Need. Thats y its actually Sumif with period criteria.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: To map old Code to New Code base on Date

    Please comment on the solution offered in post #3.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    285

    Re: To map old Code to New Code base on Date

    @windknife

    Hi, somehow if the tag has been change more than once, the formula show #na. I'm sorry, but my real life case, the tag would be change quite a number of times.

    See my attached which i highlighted in Yellow form A:C
    Last edited by AliGW; 02-07-2024 at 06:20 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: To map old Code to New Code base on Date

    You should have made this added complication clear at the outset - you have effectively shifted the goalposts. Are there any other twists here??? What else HAVEN'T you told us?

  8. #8
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    285

    Re: To map old Code to New Code base on Date

    Sorry for that. I re-attached the file, however, i added in the real case situation
    Last edited by AliGW; 02-07-2024 at 06:36 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: To map old Code to New Code base on Date

    This is the same as post #6 - you have not shown expected results on the new row! And are there any more curve balls coming? Has this covered ALL eventualities?

  10. #10
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,913

    Re: To map old Code to New Code base on Date

    How about this,

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    10-02-2023
    Location
    Singapore
    MS-Off Ver
    Microsoft 365
    Posts
    285

    Re: To map old Code to New Code base on Date

    Hey Thanks! It works! Sorry for not explaining it clearly in my 1st post.
    Last edited by AliGW; 02-07-2024 at 07:08 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: To map old Code to New Code base on Date

    Administrative Note re. Forum Guideline #2:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.

    If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).

    If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  13. #13
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,913

    Re: To map old Code to New Code base on Date

    You are welcome.

+ 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. [SOLVED] Get the MARK value base on the unique NO. & Code
    By jasond1992 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2021, 04:00 AM
  2. [SOLVED] Get remarks value base on the CODE No. and Unique no.
    By jasond1992 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2021, 04:44 AM
  3. [SOLVED] get remarks value base on the right CODE No.
    By jasond1992 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-10-2021, 10:14 AM
  4. VBA code to specify the Hyperlink base box
    By Gryfphon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2017, 05:15 PM
  5. [SOLVED] Base on material code - find out latest P.O. date per project
    By ExcelUser2707 in forum Excel General
    Replies: 4
    Last Post: 07-10-2014, 04:47 AM
  6. please explain data base code
    By shaik.ibrahim in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2011, 03:36 PM
  7. [SOLVED] How do i set up a data base in excel for code 128
    By charlieking4747 in forum Excel General
    Replies: 1
    Last Post: 06-09-2006, 01:30 PM

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