+ Reply to Thread
Results 1 to 8 of 8

How to make formula find a value in one of many worksheets?

Hybrid View

ABSTRAKTUS How to make formula find a... 04-18-2010, 09:38 AM
JBeaucaire Re: How to make formula find... 04-18-2010, 09:57 AM
ABSTRAKTUS Re: How to make formula find... 04-18-2010, 10:15 AM
JBeaucaire Re: How to make formula find... 04-18-2010, 05:33 PM
JBeaucaire Re: How to make formula find... 04-18-2010, 08:53 PM
ABSTRAKTUS Re: How to make formula find... 04-19-2010, 05:04 AM
JBeaucaire Re: How to make formula find... 04-19-2010, 09:21 AM
JBeaucaire Re: How to make formula find... 04-21-2010, 08:52 PM
  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    How to make formula find a value in one of many worksheets?

    Hi all! I strugle with my project. I don`t know how to make a formula, whitch could retrieve a value from one of many worksheets and when two criterias given. Example: there are 31 sheets for days of the month and one for graphs. So, in graphs there are two cells with the data validation. In one of them you pick a product, and in another pick a day. And I want to be able to get a value from the specific sheet and product. So, what formula I have to use?

  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: How to make formula find a value in one of many worksheets?

    Most likely a combination of INDEX/MATCH for the product and INDIRECT() for the sheetname.

    Click GO ADVANCED and use the paperclip icon to post up your workbook. We can suggest something specific for you if we see your layout and where you're trying to implement this.
    _________________
    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
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: How to make formula find a value in one of many worksheets?

    I can`t attach a file. It says database error. Can I send it to your email?

  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: How to make formula find a value in one of many worksheets?

    You can zip it up to get the size down, or use the link in my signature to go to my site, it has contact info there.

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

    Re: How to make formula find a value in one of many worksheets?

    In F12:
    =SUMIF(INDIRECT($F$9 & "!B:B"), $F$7, INDIRECT($F$9 & "!J:J"))

    In F13:
    =SUMIF(INDIRECT($F$9 & "!B:B"), $F$7, INDIRECT($F$9 & "!K:K"))

    In F14:
    =SUMIF(INDIRECT($F$9 & "!B:B"), $F$7, INDIRECT($F$9 & "!L:L"))

    In F15...unmerge the two cells, then entered as an array formula:
    =SUM(SUMIF(INDIRECT(ROW($1:$31) & "!B1:B100"),"=" & $F$7, INDIRECT(ROW($1:$31) & "!L1:L50")))
    ...confirmed by pressing CTRL-SHIFT-ENTER.
    Last edited by JBeaucaire; 04-19-2010 at 09:22 AM. Reason: sheet removed...see below for latest version

  6. #6
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: How to make formula find a value in one of many worksheets?

    You`re a GENIUS! Thank you very much! You just missed one thing (I didn`t mention that. My fault). Where you choose a day, in the dropdown list you can choose "monthly", not just a day. Is it real to get values for chosen product for all 31 days? By the way, If picked "monthly", I want to retrieve values only for underweights and overweights. Thanks again!

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

    Re: How to make formula find a value in one of many worksheets?

    That puts array formulas in the first two cells, too, so they have to be unmerged as well.
    Attached Files Attached Files

  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: How to make formula find a value in one of many worksheets?

    Does this work for you?

    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)

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