+ Reply to Thread
Results 1 to 5 of 5

Find a result from "WEEKNUMBER" and text

  1. #1
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Find a result from "WEEKNUMBER" and text

    Thanks for reading.

    Sheet1 has a named cell called WEEKNUMBER into which the week number is entered
    Column A contains all the locations
    Column B needs to contain the margins based on the WEEKNUMBER figure

    Data is in a "SITES" tab within the same workbook.
    The week numbers and margins for all the locations (around 3500 rows) are


    The attached gives a simple example of the workbook.

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Find a result from "WEEKNUMBER" and text

    Put this in B4:

    =SUMIFS(SITES!D:D,SITES!A:A,$C$1,SITES!B:B,A4)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Find a result from "WEEKNUMBER" and text

    TEST.xlsm

    That uses a macro
    Elegant Simplicity............. Not Always

  4. #4
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Re: Find a result from "WEEKNUMBER" and text

    Sir - you are a genius! Works brilliantly and I can even understand it!
    Many thanks

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Find a result from "WEEKNUMBER" and text

    Glad to hear that. Thanks for feeding back, and for the rep.

    Pete

+ 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. Find "TEXT 1" in a range and enter "TEXT 2" in the adjacent cell
    By madreag in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2013, 05:34 PM
  2. Replies: 9
    Last Post: 09-05-2012, 10:23 AM
  3. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 AM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. Replies: 5
    Last Post: 06-26-2006, 09:23 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