Results 1 to 18 of 18

Mapping strings in cell to value, and then keeping certain rows based on certain criterias

Threaded View

  1. #1
    Registered User
    Join Date
    05-01-2023
    Location
    Singapore
    MS-Off Ver
    (Version 2302 Build 16.0.16130.20378) 64-bit
    Posts
    66

    Mapping strings in cell to value, and then keeping certain rows based on certain criterias

    Testy.xlsm

    photo_2023-05-31 21.07.38.jpeg

    I have this excel file. The tenors in row C goes from O/N (overnight), 1 month, 3 months, 6 months and 1 year. I wish to give a value to the tenors such that it goes in ascending order based on its duration, but remain the abbreviations in the Column C.

    After doing that, I want to delete rows by keeping only the highest Tenor, while remaining the relevant Entity, Bank Name and Pillar (AB_CD or Placement).

    With reference to the screenshot I've attached above, after running the vba code, my first 3 rows should look like this:
    A2: China, B2: Bank of America, C2: 1Y, D2: AB_CD, E2: SGD, F2: 118000000, G2: 0, H2: 118000000
    A3: China, B3: Bank of America, C3: 1Y, D3: Placement, E3: SGD, F3: 118000000, G3: 0, H3: 118000000
    A4: London, B4: Bank of China, C4: 1Y, D4: AB_CD, E4: SGD, F4: 118000000, G4: 0, H4: 118000000

    I don't really know how to start the code, I would really appreciate some help on this!
    Last edited by webcam723; 05-31-2023 at 09:30 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Replacing multiple strings in one cell according to a mapping table (lookup)
    By zits1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2022, 08:27 AM
  2. How to hide some rows based on a specific cell value whilst keeping all unused rows hidden
    By Consultant101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2021, 06:41 PM
  3. [SOLVED] mapping words to strings
    By calitopgun in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-13-2021, 02:55 PM
  4. Replies: 0
    Last Post: 05-30-2020, 03:14 AM
  5. Replies: 4
    Last Post: 05-09-2017, 06:05 AM
  6. Copy Rows from one sheet to another based on mapping
    By donk04 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2016, 03:53 AM
  7. delete rows based on three criterias
    By cbk40060 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2015, 02:26 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