COUNTIF formula made from multiple cells text

Neocold

New Member
Joined
Mar 25, 2023
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have been trying to get this to work for about 6 hours and I am at the end of my rope.

I am pulling data from another spreadsheet in the workbook and since the locations of the data can sometimes change I am trying to make a COUNTIF formula from values entered on the spreadsheet in the attached photo (yellow cells). One photo shows me trying to get the formula to work by combining the cells to make the formula work and it does not (cell F12). The other photo shows the formula entered directly and working (F22).

I have tried INDIRECT and all kinds of other ways that but I must be missing something???

Thank You for any assistance!
 

Attachments

  • Capture.PNG
    Capture.PNG
    51.8 KB · Views: 7
  • Capture2.PNG
    Capture2.PNG
    52.1 KB · Views: 9

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Here is another screenshot showing the formula in cell F12
 

Attachments

  • Capture3.PNG
    Capture3.PNG
    50.6 KB · Views: 1
Upvote 0
Hi,
Have you tried to insert a Pivot Table ?
 
Upvote 0
I have not heard of a Pivot Table, I will look into this and see if I can get that to work.
So this seems to be giving me the same problem. I can get the correct data to return based on the pivot table created but I can not figure out how to get the pivot table to use the changing values in the yellow highlighted cells?
 
Upvote 0
What boggles my mind is if I do this on the sheet labeled 'CONFIG'
Excel Formula:
="'"&B1&""&B12
which properly turns itself into
Excel Formula:
'SOMS ROSTER'!G691
Then this on the sheet I am trying to get the results on
Excel Formula:
=INDIRECT(CONFIG!E12)
It properly returns the value (in this case "58")


However, If I do this on the sheet labeled 'CONFIG'
Excel Formula:
=C1&C12&D1&D12&E1
which properly turns itself into
Excel Formula:
COUNTIF('SOMS ROSTER'!L620:L690,"Close")
Then this on the sheet I am trying to get the results on
Excel Formula:
=INDIRECT(CONFIG!F12)
It returns the value of #REF! but if I put in
Excel Formula:
=COUNTIF('SOMS ROSTER'!L620:L690,"Close")
directly it works?
 
Upvote 0
Found the solution.
=COUNTIF(INDIRECT(CONFIG!F13),"Close")

Thanks to this thread:
 
Upvote 0
Solution

Forum statistics

Threads
1,215,328
Messages
6,124,299
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top