+ Reply to Thread
Results 1 to 9 of 9

Recurring find a replace

  1. #1
    Registered User
    Join Date
    04-22-2021
    Location
    IL
    MS-Off Ver
    2010
    Posts
    4

    Recurring find a replace

    Hi,
    I have Excel 2016.
    In each row, in cell B I have a name and then in cells C to I i have many different countif functions searching for that name in cell B on another spreadsheet. I have 50 rows with 50 different names and corresponding countif functions.
    If i need to make a change to the countif functions range I need to copy the new sets of functions to all the rows and then one by one use "find and replace" to find the countif criteria (the name) and replace it with the correct name in cell B of the corresponding row.
    I would like to automate this process, couldn't find a solution with chat GPT.
    Any ideas please?

  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
    48,158

    Re: Recurring find a replace

    Are you still using 2010?


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    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
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Recurring find a replace

    Change your name in quotes to a cell (change "Dan" to B2) and drag down.

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: Recurring find a replace

    May be
    In "C2" =COUNTIF(Sheet2!$B$2:$B$15,$B2)


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Recurring find a replace

    Is this what you are after?
    C2;
    =SUMPRODUCT((Sheet2!$A$1:$A$15<>"Friday")*(Sheet2!$A$1:$A$15<>"Saturday")*(Sheet2!$B$1:$B$15=B2))
    D2;
    =SUMPRODUCT(((Sheet2!$A$1:$A$15="Friday")+(Sheet2!$A$1:$A$15="Saturday"))*(Sheet2!$B$1:$B$15=B2))

    Then copy both down.

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Recurring find a replace

    This is the 4th post with exact same requirement?
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Recurring find a replace

    C2;
    =SUMPRODUCT((Sheet2!$A$1:$A$15<>"Friday")*(Sheet2!$A$1:$A$15<>"Saturday")*(Sheet2!$B$1:$B$15=B2))
    D2;
    =SUMPRODUCT(((Sheet2!$A$1:$A$15="Friday")+(Sheet2!$A$1:$A$15="Saturday"))*(Sheet2!$B$1:$B$15=B2))

    Then copy both down.

  8. #8
    Registered User
    Join Date
    04-22-2021
    Location
    IL
    MS-Off Ver
    2010
    Posts
    4
    Quote Originally Posted by Croweater View Post
    Change your name in quotes to a cell (change "Dan" to B2) and drag down.

    So simple, works! Thanks

  9. #9
    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: Recurring find a replace

    Gogobear. Please take a moment and actually READ the rules that you agreed to stick to.



    https://www.excelforum.com/forum-rul...rum-rules.html

    Please note Rule 5 in particular. You have now got 4 identical threads. You can expect to be banned from this forum if you continue to post multiple threads on EXACTLY the same subject.

    I have merged the 3 threads that remain open.
    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

+ 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. Recurring find a replace
    By GOGOBE22 in forum Excel General
    Replies: 3
    Last Post: 04-11-2023, 04:53 AM
  2. Recurring find a replace
    By GOGOBE22 in forum Excel General
    Replies: 2
    Last Post: 04-11-2023, 04:44 AM
  3. Recurring find a replace
    By GOGOBE22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2023, 04:39 PM
  4. Replies: 0
    Last Post: 02-13-2021, 03:32 AM
  5. Find Recurring data based on two criteria
    By but_the_levy_was_bry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2020, 09:57 PM
  6. Replace single recurring value with value from list
    By nashi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2013, 03:28 AM
  7. Help!! find two number recurring numbers in row??
    By carrolld2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-03-2013, 03:10 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