+ Reply to Thread
Results 1 to 3 of 3

If value in cell equals this, then other cells equal this

  1. #1
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    If value in cell equals this, then other cells equal this

    Hello,

    Need some assistance

    we prefer VBA macro for the following

    I've attached a sample

    if B4 = B9:B14, then C4:J4 = C9:J9

    Users will enter data in B4 in order to autofill C4:J4

    thank you
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: If value in cell equals this, then other cells equal this

    First your description is a little cloudy. Do you mean this:

    When cell B4 is changed, see if that value is contained in the range B9:B14. If so, then copy the contents of C:J in the row where the value was found into C4:J4
    .


    Here is a macro. But this is trivial to do with formulas. Why do you prefer a macro?

    Note that your formatting on row 4 prevents the proper display of the data.

    This will give an error if the value is not found. You can eliminate the possibility of error by using Data Validation with a list in B4 and use a named formula for the list.

    You must put this code into the module for Sheet1:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    Re: If value in cell equals this, then other cells equal this

    6stringjazzer,

    this worked

    thank 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. IF Cell Equals X then this cell should equal Y
    By froppo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-25-2015, 06:19 PM
  2. [SOLVED] If cell D3 equals X and P3 doesnt equal 'z' highlight it
    By Suffolkhousing in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2014, 08:43 AM
  3. Replies: 1
    Last Post: 11-28-2013, 02:16 AM
  4. IF cell range B2:M2 equals X then equal same as cell B1
    By tsul5693 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2013, 01:36 AM
  5. [SOLVED] If Cell equals, then make another cell equal to another value
    By FatCake in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-22-2013, 01:38 PM
  6. If 1 cell equals another in a range than equal to a 3rd cell
    By owenandy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2012, 10:00 PM
  7. If all cells equals a value then format a cell
    By Post2gary in forum Excel General
    Replies: 1
    Last Post: 06-12-2011, 05:42 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