+ Reply to Thread
Results 1 to 9 of 9

Excel formula help - Advanced cell value copy

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    denmark
    MS-Off Ver
    Excel 2003
    Posts
    8

    Excel formula help - Advanced cell value copy

    Hi All

    My formula (as shown in the picture attached: untitled.jpg) copies the value from the green highlighted cell and adds an "-" and the cell value in column H. This runs for an unspecified amount of rows until a new value in column C appears.

    My formula should now adapt and use the value in C567 instead of C536 for the forthcomming rows (after the yellow row 567) in column I, but as you can see it obviously doesnt. The values are still copied from C536.

    Can you help on how I should rewrite the formula so it "updates" the cell-number from which it should copy the value?

    NOTE: It is not allowed to add a new formula in a new column/row in this very sheet, however sheet 2 and 3 are possible to use.

    Let me know if there is any confusion or information needed to solve this problem.

    Thanks in advance.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel formula help - Advanced cell value copy

    Hi and welcome to the forum.

    As you can understand, No one can work in a picture!

    So, pls, upload a small sample workbook.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-19-2012
    Location
    denmark
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Excel formula help - Advanced cell value copy

    Quote Originally Posted by Fotis1991 View Post
    Hi and welcome to the forum.

    As you can understand, No one can work in a picture!

    So, pls, upload a small sample workbook.
    I can understand that, thanks.

    I think a sample sheet should have been uploaded here.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel formula help - Advanced cell value copy

    Apologize for this, but for me is not clear which is your target...

    In which column you need to change your formula and why? Which is the correct result?

  5. #5
    Registered User
    Join Date
    06-19-2012
    Location
    denmark
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Excel formula help - Advanced cell value copy

    Formula in column I should be changed.

    Goal is that the numbers in column I change value when i insert a new value in column C.

    As you can see all values in column I lead back to cell C1. I want the numbers after ROW 32 in column I to refer to cell C32, and i want it to happen automatically if i were to insert another value in column C.


    Let me know if its still confusing.

    Thanks

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel formula help - Advanced cell value copy

    I think it's clear now.

    So in I2 and copy down, use this formula.

    =IF(H2="","",INDEX($C$1:C2,MAX(MATCH(REPT("z",255),$C$1:C2)))&"-"&H2)

    Is this, works for you?

  7. #7
    Registered User
    Join Date
    06-19-2012
    Location
    denmark
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Excel formula help - Advanced cell value copy

    Quote Originally Posted by Fotis1991 View Post
    I think it's clear now.

    So in I2 and copy down, use this formula.

    =IF(H2="","",INDEX($C$1:C2,MAX(MATCH(REPT("z",255),$C$1:C2)))&"-"&H2)

    Is this, works for you?
    Wauw,

    Your'e a genious !

    Thanks so much. My job just got 50% easier thanks to you.

    Have a nice day,

    Thanks

  8. #8
    Registered User
    Join Date
    06-19-2012
    Location
    denmark
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Excel formula help - Advanced cell value copy

    Can you explain what the addition you made does specifically?

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Excel formula help - Advanced cell value copy

    You are welcome! Thank you for your good words and have a nice day too!.

    I'll try to explain, but forgive me for my poor English..

    First we'll make formula a little simplier, like this.

    =IF(H2="","",INDEX($C$1:C2,(MATCH(REPT("z",255),$C$1:C2)))&"-"&H2)

    Formula like this
    =INDEX(A:A,MATCH(REPT("z",255),A:A))

    Finds the last text value in a range..In thIs case Column A, in our case, starting In C1, in EVERY cell of Column C.

    What i mean is this.
    We "Lock" cell C1 and as formula, goes down you see range to change like that...

    $C$1:C2 This find from C1:C2

    $C$1:C3 This find from C1:C3

    $C$1:C4 This find from C1:C4

    ETC ETC.....

    Hope to helps you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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