+ Reply to Thread
Results 1 to 4 of 4

[VBA CODE] Changing Cell Value based on 3 other Cell's Value

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    2010 Pro
    Posts
    25

    [VBA CODE] Changing Cell Value based on 3 other Cell's Value

    Hello, Everyone.

    I am currently using the below code to change the Text is some cells based on the Text in another cell. What I would like to do is the same, but based on a Numeric Values.

    Example: If J2 = Numeric Then change cell N2 in the same row to "N"

    I am very new to VBA and am not sure which Function to use instead of the If UCase. Any help would be appreciated.

    Thanks in advance!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: [VBA CODE] Changing Cell Value based on 3 other Cell's Value

    Here's an example based on the problem you described.

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

  3. #3
    Registered User
    Join Date
    07-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    2010 Pro
    Posts
    25

    Re: [VBA CODE] Changing Cell Value based on 3 other Cell's Value

    Thank you for the response, JieJenn. Question, is it possible to use the code I am already using, but replace the
    Please Login or Register  to view this content.
    to something like
    Please Login or Register  to view this content.
    ?

    Reason I ask is because I will be using this in multiple ways, one of which will be refrences 3 cells in the saw row.
    Example: If J2, K2 and L2 = 1234 Then Change Cell N2 to "N" but if cells J2, K2, and L2 are blank then do nothing (do not clear N2 either).

    Thanks again!!

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: [VBA CODE] Changing Cell Value based on 3 other Cell's Value

    I don't see why not.

+ 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] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  2. Replies: 2
    Last Post: 01-27-2012, 09:40 PM
  3. Changing cell fill colour based on date in cell - Multiple rows
    By ExcelNewb2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 07:30 AM
  4. Find Last Cell In range, and changing another Cell based on offset text
    By radar_jynx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-05-2009, 04:52 AM
  5. macro: changing cell color based on date in cell
    By CindyG in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-13-2009, 12: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