+ Reply to Thread
Results 1 to 3 of 3

If value in column is less than XY, then write 0 in the adjacent cell

  1. #1
    Registered User
    Join Date
    06-20-2022
    Location
    Berlin, Germany
    MS-Off Ver
    2013
    Posts
    7

    If value in column is less than XY, then write 0 in the adjacent cell

    Hello,

    I have a small problem which I would solve with macros.

    There are 4 columns
    Unfortunately, I can't figure out how to write a macro that does the following things:
    If(value in column3<=0.5 then also write 0.5 in the adjacent cells of column 4,5,6)
    If(value in column4 = 10 then replace it with 9.99.
    The macro should do this for the whole worksheet.

    Many thanks for your help and sorry for my bad English skills

    Regards
    valuca

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,410

    Re: If value in column is less than XY, then write 0 in the adjacent cell

    Would you mind adding an example of what it should look like?
    I don't quite understand that column 4 is seen as output in the first line, but is seen as input in the second line.

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: If value in column is less than XY, then write 0 in the adjacent cell

    How about

    Please Login or Register  to view this content.

+ 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] Formula to match a value in a column and then write its adjacent cell value
    By rexcel548562 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-28-2022, 12:46 PM
  2. [SOLVED] Check Background color of cell and write appropriate value in adjacent cell
    By AnirudhC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2017, 04:39 PM
  3. Userform Find Cell From ComboBox Value And Write To Adjacent Cell
    By pferder in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2014, 09:05 PM
  4. Replies: 4
    Last Post: 07-29-2013, 12:35 PM
  5. Replies: 1
    Last Post: 07-29-2013, 10:48 AM
  6. range find data and write to adjacent cell
    By cdy3900 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2013, 11:32 PM
  7. VB - Write in adjacent cell given certain criteria
    By adgjqetuo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2009, 01:07 PM

Tags for this Thread

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