+ Reply to Thread
Results 1 to 6 of 6

Automatically copy text data from one cell, into another cell, by entering the row number

Hybrid View

acathan Automatically copy text data... 01-31-2015, 08:15 PM
GC Excel Re: Automatically copy text... 01-31-2015, 08:22 PM
acathan Re: Automatically copy text... 02-01-2015, 07:16 PM
FlameRetired Re: Automatically copy text... 02-02-2015, 01:08 AM
acathan Re: Automatically copy text... 02-02-2015, 07:07 PM
GC Excel Re: Automatically copy text... 02-02-2015, 12:03 AM
  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Thumbs up Automatically copy text data from one cell, into another cell, by entering the row number

    Hi guys.
    I've got a sheet drawn up for our Work Lotto Bonus ball game
    Its simple enough layout, with the Rows representing the 49 numbers in the lotto, and the columns representing the Week/draw dates.
    I then enter the names of people taking part, in their chosen week/number cell.
    The first 4 rows, before the numbering starts, i have Date, Winning number, winners name, and the winning prize amount.
    If there is no winner, the pot rolls over into the following week.
    I can manually enter all this info, but what i want to do is type in the winning number, and then have it automatically fill in the name of the winner.

    For example:
    I type in number 30 in row 2
    In row 30, is Bob (lucky Chap)
    The sheet automatically takes bobs name, and copies it into row 3, under the winning number.
    There is a winner, The prize amount (in row 4) is won, so the following weeks pot stays the same.

    If there is no winner, no name appears in row 3, and the prize pot in row 4, then gets added to the pot already in Row 4 of the next column.

    I'm very new to excel and have next to no experience in it so any help would be hugely appreciated.
    I have attached a demo Xls of the spreadsheet i am trying to complete.
    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Automatically copy text data from one cell, into another cell, by entering the row num

    Hello acathan,

    See if this works for you...
    Attached Files Attached Files
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    01-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Thumbs up Re: Automatically copy text data from one cell, into another cell, by entering the row num

    Did that really just take you 7 minutes??
    Thats perfect and exactly what i needed! And looking at the formula, and after spending hours googling previous to my post, i can safely say i wouldn't of been able to figure that one out for myself.
    Huge thanks go out to you!

    EDIT: The only 'problem' is when there is no number in Row 7. Ie: before the draw has taken place. Instead of leaving the winners box blank, it shows #VALUE!
    I also modified the formula in row 10 to '=IF(B8="",B10+COUNTA(C11:C59),COUNTA(C11:C59))' which adds the previous weeks pot, to the current week, allowing the total to change as players are added, however it has the same problem as above. If no number in Row 7, it shows #VALUE!
    Functionally, its no problem, but i print it out each week, so it looks a bit funny.
    Last edited by acathan; 02-01-2015 at 08:17 PM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Automatically copy text data from one cell, into another cell, by entering the row num

    Quote Originally Posted by acathan View Post
    Did that really just take you 7 minutes??

    EDIT: The only 'problem' is when there is no number in Row 7. Ie: before the draw has taken place. Instead of leaving the winners box blank, it shows #VALUE!
    I also modified the formula in row 10 to '=IF(B8="",B10+COUNTA(C11:C59),COUNTA(C11:C59))' which adds the previous weeks pot, to the current week, allowing the total to change as players are added, however it has the same problem as above. If no number in Row 7, it shows #VALUE!
    Functionally, its no problem, but i print it out each week, so it looks a bit funny.
    For the first problem try this similar version in B8:F8:
    Formula: copy to clipboard
    =IFERROR(INDEX(B$11:B$59&"",MATCH(B$7,$A$11:$A$59,0)),"")
    For the second problem after doing the above see if your modified "pot" formula still produces an error. It didn't when I used it in conjunction with formula I posted here. I suspect the #VALUE error you were getting was derived from the #VALUE error in the first formula (B8:F8).

    Hope this helps.

  5. #5
    Registered User
    Join Date
    01-07-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Automatically copy text data from one cell, into another cell, by entering the row num

    Thanks guys.
    A combination of your answers corrected it perfectly.
    I used GC Excels Formula, But after trying it in B7 and not working, i presumed B8 was meant, as suggested by Flameretired.
    FYI, I did tried both formulas and they both appear to perform the same, working as it should.

    However...

    It has thrown up another 'error'. I can live with this one if its more hassle than its worth, but i like perfection and you guys know your stuff
    The weeks that have no Number entered yet, the next weeks pot is showing it as a rollover. But obviously, we dont know if it will be yet. It would be nicer if the pot stayed as its individual weekly pot, until the information was entered confirming it as a rollover.
    Currently, The formula in B10 is '=COUNTA(B11:B59)' and C10:F10 is '=IF(B8="",B10+COUNTA(C11:C59),COUNTA(C11:C59))'
    Like is said, i can live with it, as you've been very helpful already.
    Thanks

  6. #6
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Automatically copy text data from one cell, into another cell, by entering the row num

    Try this formula in B7:

    =IFERROR(IF(INDEX(B$11:B$59,B7)=0,"",INDEX(B$11:B$59,B7)),"")

+ 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: 3
    Last Post: 05-21-2013, 11:22 AM
  2. [SOLVED] VBA Needed to find number/text within cell string and copy out to new cell
    By Campbell A in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-19-2013, 10:15 AM
  3. Replies: 7
    Last Post: 03-12-2013, 08:58 AM
  4. Run Macro Automatically from entering data into cell
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2010, 01:53 PM
  5. Replies: 6
    Last Post: 10-13-2006, 08:28 AM

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