Formula to count text in every nth column in another worksheet while looking up a specific column

Jermine

New Member
Joined
Feb 17, 2021
Messages
21
Office Version
  1. 2010
Platform
  1. Windows
Hi, I wish to count every 5th column starting at a specific cell, take C28 as an example in this case, meanwhile looking up to match the CSE Name in column B.
and I wish to avoid using COUNTIF function cause the value will shows error when the reference workbook is closed.

Is there a reasonably short formula for this please?

In a nutshell, I want to know the total count of "W" for each "CSE Name" (in column B) within the range A27:V47.
Meanwhile I have 2 worksheet that I need to perform such with the "CSE Name" displaying in different sequence, and needing to sum up the total count of "W" for the same person.

1656670776081.png
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about like
Excel Formula:
=SUMPRODUCT((Sheet1!B28:B47=A2)*(Sheet1!G27:V27="Actual")*(Sheet1!G28:V47="W"))
 
Upvote 0
Solution
How about like
Excel Formula:
=SUMPRODUCT((Sheet1!B28:B47=A2)*(Sheet1!G27:V27="Actual")*(Sheet1!G28:V47="W"))

Hi Fluff, this work wonder.

May I also know how to apply the above formula in a diff. workbook with the "CSE Name" displaying different sequence (eg: workbook (a)
That is to say that, I would like to apply the above formula in workbook (a) with workbook (b) as my external reference, while the lookup value, 'CSE Name' in both workbook (a)&(b) is not in sequence.

Appreciate if you could guide me through this.

Example:
workbook (a)
1656941923084.png

workbook (b) - same image in thread #1
1656941897075.png
 

Attachments

  • 1656941872140.png
    1656941872140.png
    31.4 KB · Views: 3
  • 1656941916708.png
    1656941916708.png
    34.6 KB · Views: 2
Upvote 0
If you open both workbooks & manually change the ranges in the formula by selecting the relevant cells, you will get the right construct.
 
Upvote 0
If you open both workbooks & manually change the ranges in the formula by selecting the relevant cells, you will get the right construct.
Thanks Fluff, that solved it! Thanks a million 🤩
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

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