+ Reply to Thread
Results 1 to 8 of 8

Update line if a cell has specific value

  1. #1
    Registered User
    Join Date
    03-14-2017
    Location
    Iceland
    MS-Off Ver
    2016
    Posts
    16

    Update line if a cell has specific value

    Hi
    I have a large sheet of data and some of the lines are corrupted, that is some of them are the right values multiplied by x2,x3 and so on.

    Like you can see on the picture, lines 4 and 5 are just right but lines 3 and 7 are the original values multiplied by *2 and line 6 multiplied by *4.
    What i want to do is to update lines 3 and 7 by divideing them by /2 and line 6 by /4
    Best regards
    HlynurCapture1.PNG
    Last edited by hlynur11; 03-18-2017 at 04:25 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Update line if a cell has specific value

    Hi Hlynur,

    Probably for you it is obvious that lines 3 and 7 are the original values multiplied by *2 and line 6 multiplied by *4.
    For me - not.

    So to help you effectively I shall know how to recognize such situation.

    Probably it will be easier if you attach a sample workbook, not a screenshot.

    Just to give you a simple tip (may be this is enough):
    write in an empty cell 2,
    copy this cell
    select all cells which shall be divided/multilied by 2 (use Ctrl to select multiple cells with a left-click)
    Paste special into these cells using multiply/divide_by option see http://www.techrepublic.com/blog/mic...ting-in-excel/
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    03-14-2017
    Location
    Iceland
    MS-Off Ver
    2016
    Posts
    16

    Re: Update line if a cell has specific value

    When I think about it you are right, it may not be as obvious to you.
    But all the values in column L should be equal to 235,000, and from that you can see that line 3 and 7 is multiplied by x2 and line 6 is multiplied by x4
    I have a few files that all have 500+ lines and I want to find a way so that I can let excel choose what cells/lines should be divided, it will take so much time if I have to select them all one by one
    Best regard
    Hlynur
    Last edited by hlynur11; 03-17-2017 at 12:20 PM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Update line if a cell has specific value

    And what is the content of L3...L7 - is it formula related to M3:O3?

    Anyway a standard suggestion shall help us:
    -------
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    03-14-2017
    Location
    Iceland
    MS-Off Ver
    2016
    Posts
    16

    Re: Update line if a cell has specific value

    Here you can see an example, hope that i explanes what i want to do
    Attached Files Attached Files

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Update line if a cell has specific value

    How about such formulas:
    G2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    H2 and copy down and right:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    After you verify the result, you can select all G2:K500 (assuming 500 is last row), copy and paste special as values into A2:D500 and delete columns G:K
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-14-2017
    Location
    Iceland
    MS-Off Ver
    2016
    Posts
    16

    Re: Update line if a cell has specific value

    This is great, thank you very much!

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Update line if a cell has specific value

    You are welcome.
    And thanks for marking thread SOLVED and for reputation point

+ 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. Update line if a cell has specific value
    By hlynur11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-16-2017, 08:32 AM
  2. Replies: 3
    Last Post: 03-12-2017, 03:39 PM
  3. Update date Specific cell by use Specific Month
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2014, 11:26 AM
  4. Cell update at a specific time
    By Lipocky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-01-2013, 03:19 PM
  5. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  6. Replies: 2
    Last Post: 02-01-2013, 02:53 AM
  7. Update cell at specific day
    By Marco-Kun in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-09-2010, 03:54 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