+ Reply to Thread
Results 1 to 6 of 6

Change formula if row number changed

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Change formula if row number changed

    hi,
    i want to change my formula when row number change
    for example
    if row number is 10 of column(s) then formula = ""
    else

    Please Login or Register  to view this content.
    thank you
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,282

    Re: Change formula if row number changed

    I don't follow what you require:

    Attach a sample workbook (not image).

    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.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Change formula if row number changed

    To determine the row number, use ROW()

    So perhaps something like...
    =IF(row()=10,"",your-formula)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Change formula if row number changed

    Perfect code

    Thank you Admin

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Change formula if row number changed

    Thank you JohnTopley for reply

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Change formula if row number changed

    Happy to help and thanks for the feedback

+ 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] Trouble with Worksheet Change when Target Cell Changed by Formula
    By phelbin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2016, 04:00 PM
  2. Replies: 7
    Last Post: 05-07-2014, 02:01 AM
  3. [SOLVED] Total doesnt change when number in calc are changed..
    By Karolina2012 in forum Excel General
    Replies: 5
    Last Post: 12-07-2012, 05:35 AM
  4. Function to change the rest of row ,if the first number is changed?
    By bugmenot in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-29-2009, 01:05 PM
  5. Auto change formula in cells when source is changed
    By carlo in forum Excel General
    Replies: 5
    Last Post: 06-30-2006, 12:20 PM
  6. Formula for markup won't change when the initial value is changed.
    By Steve in Eugene in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2005, 02:45 PM
  7. worksheet columns changed from letter to number, how change back
    By Ron in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-09-2005, 04:06 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