+ Reply to Thread
Results 1 to 4 of 4

Can I reference part of a formula

  1. #1
    Forum Contributor
    Join Date
    05-03-2010
    Location
    scotland,uk
    MS-Off Ver
    Excel 2007
    Posts
    186

    Can I reference part of a formula

    Probably not the correct terminology. I am currently using `find / replace` to do this, which does do the job satisfactorily.

    Formula: COUNTIF(Apr!E:E,"John") Ok one can see this adds up the entries for John in sheet Apr, column E

    As there are several names, Mary, Jean etc and many entries for each name I just wondered if part of the formula could be referenced from another sheet, something like COUNTIF(Apr!E:E,"=names! B6")

    It is not an issue for me but thought I would ask the question if it were possible, I couldnt find anything on google.

    Thank you

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I reference part of a formula

    Yes, that is possible.

    You get better help, if you add a small excel file, without confidential information.

    Please also add the expected result in the file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Can I reference part of a formula

    Hello,

    yes, you can reference a cell instead of a string. Just use

    =COUNTIF(Apr!E:E,names!B6)

    Make sure there are no blanks between the sheet name and the cell reference, just the ! sign.

    cheers, teylyn

  4. #4
    Forum Contributor
    Join Date
    05-03-2010
    Location
    scotland,uk
    MS-Off Ver
    Excel 2007
    Posts
    186

    Re: Can I reference part of a formula

    Many thanks for that solution. I have been building this workbook for the last 6 weeks for my wife to use at work and I will be changing names in formulas many times as staff changes are made...You have just made my life one heck of a lot easier.

    Thank you

+ 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] Possible to use one cell's VALUE as a part of a REFERENCE in a formula?
    By Jet0L19 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2014, 03:30 PM
  2. [SOLVED] Absolute reference for part of formula
    By aaaaaaiden in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2014, 09:05 AM
  3. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  4. using a cell reference as part of a formula
    By luca in forum Excel General
    Replies: 1
    Last Post: 10-07-2009, 06:23 AM
  5. Want to run macro that updates part of a formula reference
    By jm2241 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2007, 12:12 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