+ Reply to Thread
Results 1 to 5 of 5

Change text in formula in sequence

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Change text in formula in sequence

    My formula is
    =IF(INDIRECT("'Section 1'!$F$3") = 0, " ", INDIRECT("'Section 1'!$F$3"))

    When I run the macro I want it to read

    =IF(INDIRECT("'Section 2'!$F$3") = 0, " ", INDIRECT("'Section 2'!$F$3"))

    But I want it to be able to add 1 to any Section that I use that for.

  2. #2
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Re: Change text in formula in sequence

    Sorry, forgot to attach the workbook.
    The cells in question are in the B column of the Table of Contents
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Change text in formula in sequence

    Dutch =ALS(INDIRECT("'Section "&RIJ()-3&"'!F3")=0;"";INDIRECT("'Section "&RIJ()-3&"'!F3"))

    I tried to translate the formula:

    b4=If(INDIRECT("'Section "&Row()-3&"'!F3")=0,"",INDIRECT("'Section "&Row()-3&"'!F3"))

    and drag down

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Re: Change text in formula in sequence

    That's perfect! Even better than what I was hoping for. Thank you very much!

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Change text in formula in sequence

    Thanks for the reply.

    Glad i could help.

+ 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. Replies: 4
    Last Post: 01-04-2022, 03:58 AM
  2. Formula to determine a sequence of 6 numbers in a text
    By drajanm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2013, 03:09 AM
  3. Need Excel formula to remove all text after first numeric sequence
    By tallboy5444 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-03-2012, 06:44 PM
  4. How can you change the date sequence in formula bar?
    By Bertmcinster in forum Excel General
    Replies: 2
    Last Post: 06-13-2011, 11:08 AM
  5. Replies: 1
    Last Post: 08-27-2009, 06:07 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