+ Reply to Thread
Results 1 to 6 of 6

Concatenation on CountIf Formula

Hybrid View

  1. #1
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Concatenation on CountIf Formula

    Guys,

    Need some help with a topic.

    My given formula is
    =COUNTIF('FCST WRONG STAGE'!M:M,B2)
    Now in C1 i have the name of the sheet FCST WRONG STAGE.
    How can i make the formula to add the sheet name from C1?

    I need this, just because when I delete the sheet from source, the formulas retrieve a #REF! error and this sucks!

    I need this formula to paste it in the cell and to retrieve automatically the data, when the sheets are automatically uploaded to the source.

    tried until now "=COUNTIF("'"&C1&"'!M:M,B2)"
    Thank you!
    Last edited by IonutC; 02-26-2019 at 11:22 AM.
    Please consider:
    Be polite. Thank those who have helped you.
    Click the star icon in the lower left part of the contributor's post and add Reputation. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,972

    Re: Concatenation on CountIf Formula

    You need INDIRECT:

    =COUNTIF(INDIRECT("'"&C1&"'!M:M"),B2)
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Concatenation on CountIf Formula

    rorya you rock! super thank you!

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,972

    Re: Concatenation on CountIf Formula

    Glad to help - thanks for the rep.

  5. #5
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Concatenation on CountIf Formula

    another one pls =SUMIF('PAST CLOSE DATE'!$A:$R,B2,'PAST CLOSE DATE'!$M:$M) how is this one becoming? tried =SUMIF(INDIRECT("'"&$E$1&"'!$A:$R"),B2,INDIRECT("'"&$E$1&"'!$M:$M)) but it didnt work
    Last edited by IonutC; 02-26-2019 at 11:56 AM.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,972

    Re: Concatenation on CountIf Formula

    You missed the last quotes:

    =SUMIF(INDIRECT("'"&$E$1&"'!$A:$R"),B2,INDIRECT("'"&$E$1&"'!$M:$M"))

+ 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. Pb formula addition duplicates + concaténation
    By rmcmaillet98 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2018, 09:12 AM
  2. If statement Formula & concatenation
    By kevintampa5 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-28-2017, 08:35 AM
  3. Need a formula for random concatenation
    By John7777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2016, 04:03 PM
  4. [SOLVED] help with concatenation formula
    By ammartino44 in forum Excel General
    Replies: 4
    Last Post: 04-09-2015, 11:56 PM
  5. Formatting a Cell with concatenation Formula
    By cjconnor24 in forum Excel General
    Replies: 3
    Last Post: 01-23-2008, 07:51 AM
  6. Concatenation of a variable inside a formula
    By ksmith99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2006, 04:14 PM
  7. Concatenation in a CountIf
    By Arturo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2005, 12:15 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