+ Reply to Thread
Results 1 to 3 of 3

having a difficult time coding a cell value change based on another cell row

  1. #1
    Registered User
    Join Date
    03-03-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    5

    having a difficult time coding a cell value change based on another cell row

    Hey everyone,

    I was wondering if anyone has any insights to the VBA to do the following:

    I have percentage values from C3:Z3. If I change any values in this range, I need a corresponding value to appear in C12:Z12.

    For example if I Enter 98% in C3, I need a "5" to appear in C12, however the following is also true:

    90%>Target.value>98% would generate a 4 instead of a 5, and
    70%>Target.value>90% would generate a 3.

    I've been messing with the ElseIf functions but I need help writing these conditions correctly.

    Thank You

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: having a difficult time coding a cell value change based on another cell row

    Can you clarify the criteria?

    PS Have you considered using Select Case?
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: having a difficult time coding a cell value change based on another cell row

    try this in the Worksheet Module

    Please Login or Register  to view this content.
    rightclick2.jpg

+ 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. Fill in data based on cell change and time?
    By vitt4300 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 04:07 PM
  2. Change multiple cell colors based on date and time passed
    By cvalentine02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2013, 12:20 PM
  3. [SOLVED] Change coding to outbut full cell information not just the Letter and qty result.
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2013, 09:54 AM
  4. Time Stamp based on cell change
    By doubl3d80 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-12-2012, 12:32 AM
  5. colour coding cell based on value of another
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2010, 09:42 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