+ Reply to Thread
Results 1 to 3 of 3

Where to start? Search pivot, find value, validate, copy/paste

  1. #1
    Registered User
    Join Date
    11-17-2013
    Location
    Tallahassee, FL
    MS-Off Ver
    Excel 2007 home), 2016 (work)
    Posts
    3

    Where to start? Search pivot, find value, validate, copy/paste

    Hi,

    It has literally been over 10 years since I actively worked VBA, so I apologize in advance for my ignorance as I try to re-educate myself. Also, let me preface this by saying I don't expect to be handed full code (unless you want, haha), but I am asking for the kindness of any advice and efficient search code based on the multiple validations needed.

    Issue: I have a pivot with these headers, and the example below includes four lines of sample data (There is a lot of info on the pivot - about 40k lines and the FID is the only unique identifier... but only after the original data is pivoted):

    WS = PIVOT

    Column A / Column B / Column C / Column D / Column E

    Fid / Obj / 860100 / 861200 / 860300

    026001 / 4000 / 0.00 / 0.00 / $500.00
    / 1804 / 0.00 / 0.00 / $1,700.00
    621001 / 4000 / $3,500.00 / 0.00 / 0.00
    1004 / 0.00 / 0.00 / $2000.00

    I have additional WS named after each possible FID column above formatted like this:

    WS = 26001
    Obj / Amt / BE
    4000 / _______ / 860300
    1804 / _______ / 860300
    4000 / _______ / 860888

    WS = 621001
    Obj / Amt / BE
    4000 / _______ / 860100
    1004 / _______ / 860300
    1004 / _______ / 867550


    I would like, based on the FID in the pivot, activate the corresponding tab named after it, and copy/paste the appropriate amount based on the correlation to the Obj and BE. So WS end up looking like this:

    WS = 26001
    Obj / Amt / BE
    4000 / $500.00 / 860300
    1804 / $1700.00 / 860300
    4000 / _______ / 860888

    WS = 621001
    Obj / Amt / BE
    4000 / $3500.00 / 860100
    1004 / $2000.00 / 860300
    1004 / _______ / 867550

    Lastly, if the pivot contains Obj that are not on the FID tabs, I would like to generate an exception report including FID, BE, Obj, Amt.

    Important piece of info... FID is the parent, BE is the child, and Obj is a unique code number (once pivoted) within each BE.

    Does this even sound reasonable? I realize this is multiple validation and its been so long I just don't know where to start. ANY advice would be very much appreciated. I can do this in 2007 or 2016.

    Thank you.
    Last edited by rsamedic; 06-01-2017 at 04:22 PM. Reason: formatting

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Where to start? Search pivot, find value, validate, copy/paste

    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    11-17-2013
    Location
    Tallahassee, FL
    MS-Off Ver
    Excel 2007 home), 2016 (work)
    Posts
    3

    Re: Where to start? Search pivot, find value, validate, copy/paste

    Hmmm... it won't let me attach a file. I will try again this evening with a different browser.

+ 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. How to run Macro's so it will copy, search, find, and paste into new cell using 2 wrksheet
    By Harry_Sangha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2014, 09:39 AM
  2. Search, find, copy and paste macro or code.
    By andrew0789 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2014, 03:01 AM
  3. Search Item, Find, then Copy Paste Entire Row
    By kjbcox15 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2013, 12:41 PM
  4. [SOLVED] VB Contact Search (Find, Copy and paste) Excel 2007
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2013, 02:11 PM
  5. Replies: 2
    Last Post: 03-05-2013, 07:52 AM
  6. Search Find Copy Paste
    By cloud36 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2011, 05:32 PM
  7. Search, Find, Copy, Paste
    By cloud36 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2011, 03:53 PM

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