+ Reply to Thread
Results 1 to 3 of 3

Reassigning row automatically

  1. #1
    Registered User
    Join Date
    05-23-2017
    Location
    Qashington
    MS-Off Ver
    2010
    Posts
    2

    Reassigning row automatically

    I have a SQL query that generates a table of information. I save this output as Sheet 1.
    I have a Wizard in Excel, which I am using to extract the information generated from Sheet 1. I save this as Sheet 2.

    So, imagine Excel document, with 2 tabs = Sheet 1 & Sheet 2. Sheet 1 is the output from the SQL, Sheet 2 is the Invoice Wizard, where the data comes from Sheet 1.

    Now, the data is as such that, Column A has the employee's names. And Column B has employee's travel expense.
    In Sheet 1, generated from SQL, the SUMMARY of these reimbursements for EACH employee is at the anywhere in the list of expenses for that particular employee.


    Wherelse, I would like to have it at the top of the list.

    Meaning,
    If column A (employee name) same value, then col B (employee expense) beginning with SUMMARY OFFSET associated with col A, moves to the top row.

    I have attached an image for review.

    I don't think I can use VLOOKUP for this. Any suggestions?
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Reassigning row automatically

    Insert a Helper column

    =IF(LEFT(B1,7)="SUMMARY",1,0)

    Now sort by column A , then by the Helper column

    All the "SUMMARY..." rows will appear at the top of each group of Supplier Name's records
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-23-2017
    Location
    Qashington
    MS-Off Ver
    2010
    Posts
    2

    Re: Reassigning row automatically

    That works, thank you. Is there a way we can make that a macro, so it does it automatically, instead of manual work? I am creating this for another department and I am pretty sure there will be some mess-ups.

+ 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. [SOLVED] Converting and reassigning values.
    By Hellothar in forum Excel General
    Replies: 14
    Last Post: 01-25-2018, 02:51 PM
  2. Reassigning data to new interval ranges
    By uanwar88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2013, 06:17 PM
  3. Reassigning Cell Value
    By sperryxx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2013, 05:59 PM
  4. reassigning a button on condition of check box
    By Truss123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2011, 03:35 AM
  5. Reassigning axes on chart
    By bbooze in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-25-2009, 05:50 PM
  6. Replies: 0
    Last Post: 10-25-2005, 06:05 PM
  7. [SOLVED] Tracing and reassigning macro short cut keys
    By Graeme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2005, 06:06 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1