+ Reply to Thread
Results 1 to 8 of 8

Searching worksheets

  1. #1
    Registered User
    Join Date
    06-23-2015
    Location
    GA, USA
    MS-Off Ver
    2013 and 365
    Posts
    11

    Searching worksheets

    I'm working on a backoffice project for a marketing group I'm with. I've tried blending different formulas together and can't seem to find the correct mix for what I want.

    I'd like to search a sheet and everytime a text value is found I'd like the formula to return a dollar value that is referenced a certain column:row from the found value.

    In other words, if I search for "Mac" in my sheet and it shows in Cells A1, E1, and M:31, I'd like to sum the values that are in cells B6,F6,N36. I would then copy this formula to 5 other cells that look up different values based on different texts. The value figure location would change based on the text searched for.

    See attached for a workbook that has the basic information of what I'm trying to get.

    So on the sheet "Moving" You can see the colored cells. Those are drop down menus based on a table. When a rig is chosen it brings up a set of criteria. Once that data is entered I'd like to sum the "Paid" based on each rig and have that figure summed on the far right (W1:X6) which I can then take and do other stuff as well. But I want it to pull "Paid" based on the category. This sheet would be ongoing and so there isn't a specific order it would be done and I really don't want to have a different sheet for each rig.

    LMK if its any dirtier than mud.

    Stephen
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Searching worksheets

    It would help a lot if you actually added some data (especially value) to your file, so we can see what you are working with, and what you expect
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-23-2015
    Location
    GA, USA
    MS-Off Ver
    2013 and 365
    Posts
    11

    Re: Searching worksheets

    See attached. Ignore the sum formulas, I was just lazy. What I want is to have the sums listed based on the truck selected and the dollar figure isn't in the same row for each truck.
    Attached Files Attached Files
    Last edited by sdyer03; 08-21-2018 at 03:47 PM. Reason: forgot attachment

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Searching worksheets

    If you can keep all the data on the same line, this will work...
    =SUMIF($A$1:$U$1,X2,$B$6:$V$6)

    What I did was, in your DD table, I made all the rows contain the same data

  5. #5
    Registered User
    Join Date
    06-23-2015
    Location
    GA, USA
    MS-Off Ver
    2013 and 365
    Posts
    11

    Re: Searching worksheets

    that's a lot more simple than what I was trying for. I could just put an empty cell at the top of the shorter categories and that would line them up. IF I didn't want to do that is there another way or would it just be too ugly to set up?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Searching worksheets

    It would get a bit more complex, but probably do-able. I prefer to keep things simple, that way they are easier to adjust and troubleshoot.
    Also, if you kept them all the same, you would only need 1 set of DD values

  7. #7
    Registered User
    Join Date
    06-23-2015
    Location
    GA, USA
    MS-Off Ver
    2013 and 365
    Posts
    11

    Re: Searching worksheets

    True. Thanks!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Searching worksheets

    Happy to help

+ 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. searching through two worksheets
    By greatnewtaste in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2011, 07:44 PM
  2. Excel 2007 : Searching through worksheets
    By Skyfox in forum Excel General
    Replies: 2
    Last Post: 06-14-2010, 05:47 AM
  3. searching and collating worksheets
    By elmsoft in forum Excel General
    Replies: 0
    Last Post: 10-18-2008, 08:06 AM
  4. Searching multiple worksheets
    By Sasha9876 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2008, 06:16 AM
  5. Searching Worksheets By Name
    By suburbanght in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2007, 05:07 PM
  6. Searching Across Worksheets: Please help!
    By computerfineman in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-19-2006, 12:03 AM
  7. [SOLVED] Searching across muliple worksheets
    By Jerry Selinger in forum Excel General
    Replies: 7
    Last Post: 03-25-2006, 12:45 AM
  8. Searching Textboxes on worksheets
    By Annie Oakley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2005, 11:55 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