+ Reply to Thread
Results 1 to 10 of 10

Move whole row of data to different worksheet if first cell in row = s

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Move whole row of data to different worksheet if first cell in row = s

    I would like to move the current row of data to another sheet when I change a value in the row from an x to an s. I think I could use an If statement, but if you can move data from one worksheet to another, I don't know the syntax to use.

    thank you for your help

    Gwen

  2. #2
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Brentwood, TN
    MS-Off Ver
    Excel 2007 at home/2010 at work
    Posts
    228

    Re: Move whole row of data to different worksheet if first cell in row = s

    I don't know how to do that with formulas. But I can do it with a macro and you can insert a button. Maybe someone else will know how to do it and can post on here if they do, unless you are comfortable with using a button attached to a macro, after changing your x's to s's.

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    493

    Re: Move whole row of data to different worksheet if first cell in row = s

    the syntax for referring to another sheet, let's say cell A1 in sheet2, is sheet2!A1

    is that what you need?

    if you need help with your if-statement (it's possible without macro's) let me know
    Last edited by L-Drr; 08-02-2013 at 06:07 PM.
    When I say semicolon, u say comma!

  4. #4
    Registered User
    Join Date
    08-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Move whole row of data to different worksheet if first cell in row = s

    L-Drr

    It's the If statement I need help with.

    thanks!

  5. #5
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    493

    Re: Move whole row of data to different worksheet if first cell in row = s

    Ok here's my interpretation of your problem:

    Cell A1 in Sheet1 contains the x that you might change to an s and below are the values that should be copied.
    In column A of Sheet2 you want the data to be copied into.

    Select in Sheet2 cell A1 (or A2) and type: =IF(Sheet1!A$1="s";Sheet1!A2) and click-drag this downwards.
    Is that what you need?

  6. #6
    Registered User
    Join Date
    08-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Move whole row of data to different worksheet if first cell in row = s

    L-Drr

    You have it all right except I need the whole row to move to sheet 2. Using the formula you listed only copies one cell to sheet 2. I need it to move/cut the whole row.

    Do you know of a way to do that?

    thank you!

  7. #7
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    493

    Re: Move whole row of data to different worksheet if first cell in row = s

    Ah. That does require macro's, hold on I'll give it a try.
    BTW if it only copies one cell, I think you have forgotten to click-drag?

  8. #8
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    493

    Re: Move whole row of data to different worksheet if first cell in row = s

    I gave it a try but I didn't get very far. This is what I have so far:

    Please Login or Register  to view this content.
    There are still things missing in this code, though. If you move your thread to the Excel Programming / VBA / Macros section, I'm sure there are people there that can help you. Sorry I couldn't help you any further.

  9. #9
    Registered User
    Join Date
    08-02-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Move whole row of data to different worksheet if first cell in row = s

    L-Drr

    thank you! I will work with this code for awhile and see what I can do.

    Gwen

  10. #10
    Registered User
    Join Date
    01-02-2014
    Location
    Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Move whole row of data to different worksheet if first cell in row = s

    I have excel sheet with name "DB" and second sheet name is "OldDB" now want to move entire rom on "oldDB" when I write In-activein first coloum. Please help me. I am using 1 macro but giving some error.

+ 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. Need to move data that matches criteria in cell and move to new worksheet
    By panagle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2013, 09:23 AM
  2. Replies: 1
    Last Post: 02-14-2012, 07:00 AM
  3. Move data to matched cell on dif worksheet
    By bhodge10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2009, 02:26 PM
  4. [SOLVED] How do I move certain Cell data from one worksheet to another?
    By ryan r in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2005, 06:05 PM
  5. Move cell data to another worksheet cell automatically.
    By Alan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-09-2005, 07:05 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

X vBulletin 4.1.8 Debug Information

  • Page Generation 0.06903 seconds
  • Memory Usage 9,084KB
  • Queries Executed 15 (?)
More Information
Template Usage (34):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)footer
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (10)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (4)navbar_noticebit
  • (6)option
  • (10)postbit_legacy
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (4)showthread_bookmarksite
  • (5)showthread_similarthreadbit
  • (1)showthread_similarthreads
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper
  • (1)vbseo_linkbackmenu_entry 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (39):
  • ./vbseo.php
  • ./env.php
  • ./vbseo/includes/functions_vbseo.php
  • ./vbseo/includes/functions_vbseo_pre.php
  • ./vbseo/includes/functions_vbseo_url.php
  • ./vbseo/includes/functions_vbseo_createurl.php
  • ./vbseo/includes/functions_vbseo_db.php
  • ./vbseo/includes/functions_vbseo_vb.php
  • ./vbseo/includes/functions_vbseo_seo.php
  • ./vbseo/includes/functions_vbseo_misc.php
  • ./vbseo/includes/functions_vbseo_crr.php
  • ./vbseo/includes/functions_vbseo_cache.php
  • ./vbseo/includes/functions_vbseo_hook.php
  • ./vbseo/includes/functions_vbseo_startup.php
  • ./includes/config.php
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/functions.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/functions_cforum.php
  • ./includes/functions_facebook.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (48):
  • init_startup
  • friendlyurl_resolve_class
  • database_pre_fetch_array
  • database_post_fetch_array
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • fetch_musername
  • cache_templates
  • template_register_var
  • parse_templates
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • reputation_image
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • showthread_similarthread_query
  • showthread_similarthreadbit
  • forumrules
  • showthread_bookmarkbit
  • navbits
  • navbits_complete
  • showthread_complete


Search Engine Friendly URLs by vBSEO 3.6.0 RC 1