+ Reply to Thread
Results 1 to 3 of 3

Writing a value in a specific cell (number=line)

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    1

    Writing a value in a specific cell (number=line)

    Ok. So here's the deal. All i want to do is when i write a number, "7" for example in cell B2 then automatically the value 2 is written in cell B7. If i write "14" then the value 2 is written in cell B14 etc.

    So the number that i am writing is actually the number of the line that i need to write a value too.

    If also you can make it work backwards it would be really nice.

    Thank you for your time.
    Last edited by Scandal; 04-16-2010 at 02:19 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Writing a value in a specific cell (number=row)

    Hello Scandal, welcome to the forum.

    Can you explain a bit more in context what you are trying to achieve? Maybe post a workbook that illustrates what you want to do.

    Also, it is not clear if you are after a VBA or a formula solution.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Writing a value in a specific cell (number=row)

    in b3 dragged down
    =IF(ROW()=$B$2,2,"")
    you can't have that and what you ask as you;'d overwrite formula.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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