+ Reply to Thread
Results 1 to 6 of 6

named range referenced in formula

  1. #1
    Registered User
    Join Date
    08-16-2018
    Location
    Tokyo, Japan
    MS-Off Ver
    365
    Posts
    4

    named range referenced in formula

    Hello,

    I have a question about named ranges.


    In a raw Data sheet I have a column C with sentences in it, all different sentences.
    I also have in a 2nd sheet a matrix with a column A of words and a row 1 of other words (such as it creates a double entry table from A2/B1 to, say, L30 with empty cells in the middle) that I would like to match and count if these words appear in the sentences from col C.
    The idea is to fill in the matrix by counting the number of times the words from column A and row 1 appears in all the sentences from col C combined.

    The thing is that each cell from column A and row 1 need to have several distinct words. So I created a 3rd sheet with columns for each set of words I need in that cell, and gathering them into a named range (for each set of words).

    Right now the formula that I have (and works) is: =SUMPRODUCT(COUNTIFS(Data!$AA:$AA,"*"&NamedRange1&"*",Data!$AA:$AA,"*"&NamedRange2&"*"))

    (Data!$AA:$AA is the column with all the sentences)

    My problem with this is that I have to type in the named range manually for every single cell.

    My question is how to reference a named range in a formula such that i don't need to type in the named range manually in each cell? I would like to be able to double click (or Ctrl +D) so that each cell from column A and row 1 refers to the named range and counts automatically whether or not and how often the requested words appear in the sentence.


    Thank you

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: named range referenced in formula

    Can you attach a sample workbook showing what you want as your expected output.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Registered User
    Join Date
    08-16-2018
    Location
    Tokyo, Japan
    MS-Off Ver
    365
    Posts
    4

    Re: named range referenced in formula

    Hi kersplash,

    The first screenshot is the sample matrix translated in english.
    The actual matrix is in japanese, where the same word can have different spelling (which is why i need this named range).
    Basically i want to count the number of sentences that has this one body part A with this one symptom B,
    repeating this with however many body parts and symptoms there are.

    Hope this helps,
    Attached Images Attached Images

  4. #4
    Registered User
    Join Date
    08-16-2018
    Location
    Tokyo, Japan
    MS-Off Ver
    365
    Posts
    4

    Re: named range referenced in formula

    Oh also this is the named ranges i have defined in a different sheet.
    E.g. cells G2 to G4 are under 1 named range, called Tongue.
    Attached Images Attached Images

  5. #5
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: named range referenced in formula

    You'll need to mock up the English version (for me anyway) into a sample workbook and attach it (not images) showing your expected output for your sample.

  6. #6
    Registered User
    Join Date
    08-16-2018
    Location
    Tokyo, Japan
    MS-Off Ver
    365
    Posts
    4

    Re: named range referenced in formula

    here you go
    thank you for your quick replies
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 05-08-2018, 03:22 AM
  2. Replies: 0
    Last Post: 03-08-2016, 02:25 PM
  3. [SOLVED] Named range - can this be referenced in a formula?
    By NikonMan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-10-2013, 07:27 PM
  4. [SOLVED] Named Button to Offset Referenced Ranges in workbook when clicked
    By Lungfish in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-01-2013, 06:52 PM
  5. [SOLVED] named Range Referenced vai single cell
    By Graham in forum Excel General
    Replies: 1
    Last Post: 07-26-2006, 04:35 AM
  6. [SOLVED] Formula Changes when data entered in referenced range
    By mac849 in forum Excel General
    Replies: 5
    Last Post: 03-20-2005, 10:06 PM
  7. Defining a range in a cell so it can be referenced in a formula
    By SandyUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2005, 04:58 AM

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