+ Reply to Thread
Results 1 to 6 of 6

Concentrate formula referred to cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    159

    Concentrate formula referred to cell

    Hi Guys,

    Currently i'm using below codes and manual edit when the rows changes. Is there any ways we can simplify this (other than concat) or reference to specific cell and we just keyed in the row number.

    For eg, enter 5 if we need the row 5 data and the result will be something like "TESTA5-C5" instead?

    =CONCATENATE("TEST ",A1," - ",C1)

  2. #2
    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
    53,048

    Re: Concentrate formula referred to cell

    Maybe something like this?
    ="Test "&INDIRECT("A"&Z19)&C1
    where Z19 would contain your row number
    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

  3. #3
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    159

    Re: Concentrate formula referred to cell

    Hi FDibbins ,

    As per my initial codes, both column A & C uses row 5 for the data.

    If we were to use your data from row 19, is there any ways i can just key in 19 and i get result. It tough editing the formula every time the row# change.

  4. #4
    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
    53,048

    Re: Concentrate formula referred to cell

    If both A and C need to refer to the same row, adjust my formula to include INDIRECT for C as well...

    ="Test "&INDIRECT("A"&Z19)&INDIRECT("C"&Z19)

  5. #5
    Forum Contributor
    Join Date
    08-27-2015
    Location
    Singapore
    MS-Off Ver
    Office 2010, Office 365
    Posts
    159

    Re: Concentrate formula referred to cell

    Thanks for the codes. It works perfectly.

  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
    53,048

    Re: Concentrate formula referred to cell

    Happy to 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. Referred cell different format
    By harperg11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2016, 04:57 PM
  2. Replies: 3
    Last Post: 07-05-2016, 08:56 AM
  3. [SOLVED] Keep reference the same when cell referred to is moved.
    By aschrag in forum Excel General
    Replies: 3
    Last Post: 09-15-2014, 12:59 PM
  4. [SOLVED] Is there a formula that allows you to reference the cell referred to in a UDF?
    By Excel2010101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2014, 07:37 AM
  5. e cell referred to in a UDF?
    By Excel2010101 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2014, 01:15 AM
  6. [SOLVED] How to make a cell value dynamic when the referred value changes?
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2013, 01:14 PM
  7. [SOLVED] Conditional format but referred from other cell
    By Lamb Chop in forum Excel General
    Replies: 2
    Last Post: 07-28-2006, 04:55 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