+ Reply to Thread
Results 1 to 4 of 4

Using text from a cell in other formula.

  1. #1
    Registered User
    Join Date
    02-07-2020
    Location
    UK
    MS-Off Ver
    365
    Posts
    2

    Question Using text from a cell in other formula.

    Hi,

    I'm looking to try and speed up setting up my spreadsheets each month and would like to have a cell with the month in, which is used in all the other formula. So for example... the formula below I'd like the "*feb*" part to be whatever month I have wrote in cell J1. I'm dealing with data exported from a EQMS to do with tracking activities each month that need completing.

    =COUNTIFS(A:A,"feb",C:C,"*feb*",H:H,"y")+COUNTIFS(A:A,"feb",C:C,"*feb*",H:H,"oos")

    Thanks,
    Becky

  2. #2
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Using text from a cell in other formula.

    Try this:

    =COUNTIFS(A:A,J1,C:C,"*"&J1&"*",H:H,"y")+COUNTIFS(A:A,J1,C:C,"*"&J1&"*",H:H,"oos")

    Put feb in J1.

    If it doesn't work, I will be needing the sample excel sheet.
    Shashank Mishra
    Please hit "Add Reputation" Button if you liked the answer.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Using text from a cell in other formula.

    Or try this:

    =SUMPRODUCT(COUNTIFS(A:A,J1,C:C,"*"&J1&"*",H:H,{"y","oos"}))

  4. #4
    Registered User
    Join Date
    02-07-2020
    Location
    UK
    MS-Off Ver
    365
    Posts
    2

    Red face Re: Using text from a cell in other formula.

    Brilliant, thanks the first one worked perfectly.

    I'm so confused though as I was certain I had already tried that! Perhaps I still had the " in...

    Thanks for your 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. Replies: 2
    Last Post: 01-20-2018, 09:59 AM
  2. [SOLVED] If cell has a formula, copy text to TextBox and leave formula unchanged in cell
    By yachrishere in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2016, 06:26 PM
  3. Formula Limitations : If cell contains text then place text in said cell
    By capt fantastikk in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 02-03-2015, 01:05 AM
  4. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  5. Formula to identify part of a text in cell from range of cells & insert adjacent cell text
    By Novicebutnotforlong in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-19-2013, 02:11 AM
  6. Replies: 1
    Last Post: 01-24-2012, 11:15 AM
  7. Replies: 4
    Last Post: 04-11-2011, 08:41 PM

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