+ Reply to Thread
Results 1 to 8 of 8

When see 19 or 22 from a certain cell of the contents of the other two cells will automati

  1. #1
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    183

    When see 19 or 22 from a certain cell of the contents of the other two cells will automati

    Example 1:
    The content of cell C14 is VSC-CPS-19 * 1.0
    Therefore, the content of cell C21 is WSC-IP-3/4 "* 1" tk
    And the content of cell C55 is 3/4�

    Example 2:
    The content of cell C14 is VSC-CPS-22 * 1.0
    Therefore, the content of cell C21 is WSC-IP-7/8 "* 1" tk
    And the content of cell C55 is 7/8�
    May I ask how to write VBA code


    Any help would be appreciated!
    Attached Files Attached Files
    Last edited by metrostar; 02-05-2024 at 03:38 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    I have no idea how your sample file relates to the question and examples. There's nothing in cell C14 or C21 or C55.

    Is this the correct file?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    183

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    Sorry, the wrong file was passed and has been updated

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    Maybe this (untested):

    Please Login or Register  to view this content.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,411

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    pls try this code

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    183

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    Wow, TMS , wk9128 you are all really great, Thank you very much

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    You're welcome. Thanks for the rep.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,411

    Re: When see 19 or 22 from a certain cell of the contents of the other two cells will auto

    @metrostar You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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. How to split cell contents into 2 cells, then reverse the contents?
    By OldGrantonian in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2023, 08:10 AM
  2. Replies: 3
    Last Post: 11-18-2020, 10:45 AM
  3. Replies: 3
    Last Post: 07-17-2020, 01:15 PM
  4. [SOLVED] Adjust cell contents based on another cells contents
    By spyac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2018, 10:34 AM
  5. Replies: 6
    Last Post: 12-07-2012, 05:38 PM
  6. [SOLVED] Combine Cell Contents to with a [return] or [fill with spaces] between each cells contents
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 11:24 PM
  7. Automati import several files
    By rietbrg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2009, 01:53 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