+ Reply to Thread
Results 1 to 14 of 14

Mirror row in another sheet depending of value in column

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Mirror row in another sheet depending of value in column

    Hi,

    I have searched this forum alot now and really not found any solution to my problem.
    My workbook contains 2 sheets, 1 master sheet where all info goes and second where i want rows from master sheet to show depending of value in column A.

    In master sheet there is also Contitional Formating to change color of the row depending of what value i put in column A.
    The value in column A i set by dropdown list.

    So, i want the row from master sheet to show in second sheet when i choose value "Swap" in column A.
    It is important that this row does NOT being copied to sheet 2, but mirrored. This because i want the row show or not depending of what value i set in the master sheet.

    Good if solution works in both 2003 and 2007.


    Really need help here.
    Thanks.
    Last edited by Hbladh; 06-17-2010 at 01:41 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    With a macro or with formulas?

    Post up a sample workbook so we can assist directly, especially if you want formulas only. Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Mirror row in another sheet depending of value in column

    Quote Originally Posted by JBeaucaire View Post
    With a macro or with formulas?

    Post up a sample workbook so we can assist directly, especially if you want formulas only. Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook.
    Workbook attached.

    I guess that macros is the way for handle this?

    So when chaging value in Column A of "Bravida-Swap" to "Swappad" it should be mirrored in the sheet called "ForUpLoad". When changing that back to "Åter i pool" from the "Bravida-SWAP" sheet it should disapear from "ForUpLoad"

    Bravida-SWAP is the working sheet and "ForUpLoad" is the sheet customers will see on a webpage. Not all information is needed there.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    No, it doesn't have to be a macro. I've added a key column in AA of both sheets to provide an index of the rows that need to appear on the second sheet. That makes it easy for a simple index/match formula to grab the sequential key rows from the first sheet and display them.

    No macro needed. A bit more complete sample data would have been more helpful, but this should work.

    I've put the formulas in the ForUpload sheet down to about row 40, enough for you to see it in action as you do your work on the Bravida sheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Mirror row in another sheet depending of value in column

    Quote Originally Posted by JBeaucaire View Post
    No, it doesn't have to be a macro. I've added a key column in AA of both sheets to provide an index of the rows that need to appear on the second sheet. That makes it easy for a simple index/match formula to grab the sequential key rows from the first sheet and display them.

    No macro needed. A bit more complete sample data would have been more helpful, but this should work.

    I've put the formulas in the ForUpload sheet down to about row 40, enough for you to see it in action as you do your work on the Bravida sheet.
    This is great, thanks.
    My problem now is that i thought that i could manage to fix the rest my self but it seems like i have to ask for more help anyway.

    In column A of Sheet Bravida-SWAP there is this dropdownlist wich contains following:
    Ange ett värde
    Swappad
    Ej åtgärdad
    På Service
    Åter i pool
    Utdömd
    Special

    Following values should be mirrored to ForUpLoad:
    Swappad
    På service
    Åter i pool
    Utdömd

    The other values dont need to be mirrored.

    Also i dont get how the "Key" (AA) column change value depending of value in column A on sheet Bravida-SWAP?

    I attached your workbook again, but added a few more rows, no text though.
    Hope you can help me,

    thanks
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    On the Bravida sheet cell AA2, put this formula then copy down:

    =IF(OR(ISNUMBER(SEARCH({"Swappad","På service","Åter i pool","Utdömd"},A2))),N(AA1)+1,N(AA1))

  7. #7
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Mirror row in another sheet depending of value in column

    Quote Originally Posted by JBeaucaire View Post
    On the Bravida sheet cell AA2, put this formula then copy down:

    =IF(OR(ISNUMBER(SEARCH({"Swappad","På service","Åter i pool","Utdömd"},A2))),N(AA1)+1,N(AA1))
    Thanks for you effort, allthough that formula generates and error message "The Formula you typed contains an error".

    Since im a real newbi to this i cant figure out whats wrong.

    Any idéa`?

    thanks

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    No, it's correct as posted.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Mirror row in another sheet depending of value in column

    Quote Originally Posted by JBeaucaire View Post
    No, it's correct as posted.
    Thanks a million, it is working quite good now.
    when i implement the formulas in my worksheet i do get all the row mirrored correct but there is no text in them, not even when i create a new row.

    Do i need to add the formulas in a special order or is it anything else i need to think of?

    thanks.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    The sample you uploaded was devoid of any real test data, just the word Swappad down column A for a ways. When I type random info into the other cells on those same rows, that text shows on the ForUpload sheet.

    I can see nothing wrong with the sample workbook.

  11. #11
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Mirror row in another sheet depending of value in column

    Quote Originally Posted by JBeaucaire View Post
    The sample you uploaded was devoid of any real test data, just the word Swappad down column A for a ways. When I type random info into the other cells on those same rows, that text shows on the ForUpload sheet.

    I can see nothing wrong with the sample workbook.
    Hi again,

    Think i figured it out....

    I added text down to row 39 in sheet Bravida-SWAP and it is mirror the text in ForUpLoad perfectly.
    If i add text in row 40 and beyond it wont mirror in ForUpLoad??

    I cant figure it out whats wrong, do you?

    (Not possible to attach since there is a dabase issue on the site)

    Thanks.

    EDIT:
    Found out whats was wrong. Id miss formulas in all cells, thought that i only needed formulas in cell A and AA in ForUpload.
    I have expanded the range now to 2500 rows and the sheet is already about 6mb without any information added to it.
    Is there any other way to manage the very same thing? VBA?
    Last edited by Hbladh; 06-15-2010 at 05:09 AM.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    Sure.

    1) Clear the KEY column from the Bravida sheet.
    2) Right-click on the ForUpload sheet and select VIEW CODE
    3) Paste this code into the sheet module that appears:
    Please Login or Register  to view this content.

    4) Close the editor and save as a macro-enabled workbook
    5) Now each time you bring the FORUPLOAD sheet onscreen, it will reassert

  13. #13
    Registered User
    Join Date
    06-11-2010
    Location
    Gothenburg
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Mirror row in another sheet depending of value in column

    Quote Originally Posted by JBeaucaire View Post
    Sure.

    1) Clear the KEY column from the Bravida sheet.
    2) Right-click on the ForUpload sheet and select VIEW CODE
    3) Paste this code into the sheet module that appears:
    Please Login or Register  to view this content.

    4) Close the editor and save as a macro-enabled workbook
    5) Now each time you bring the FORUPLOAD sheet onscreen, it will reassert
    Thank you so much, this is what i was looking for...

  14. #14
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Mirror row in another sheet depending of value in column

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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