How to recognize text strings in INDEX-MATCH

expertlypaul

New Member
Joined
Nov 26, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. MacOS
I have multiple spreadsheets of marketing email data where I want to identify how many times a single user has clicked a link. Each spreadsheet represents a unique email that was sent out with a clicked column. The column has one of two results, TRUE or FALSE. Here is the formula I'm using in totality.

=SUM(IF(COUNTIF('Email 1'!$A$2:$A$22,A2)>0,IF(INDEX('Email 1'!$A$2:$S$22,MATCH(A2,'Email 1'!$A$2:$A$22,0),18)="TRUE",1,0),0))

I have tested the INDEX MATCH to see if it's pulling the right value and all is well. If the referenced email exists, then it finds the TRUE or FALSE cell under the clicked column.

When I include the IF wrapper, it doesn't seem to be able to recognize the "TRUE" text string, so marks everything as false/gives it a value of zero.

I've attempted changing the clicked column formatting to "plain text," but that didn't change anything.

Any thoughts on what the issue might be?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
really don´t know if I understood

column 18 is "R" where the TRUE/FALSO answer are, right?

you want to count how many cells in column R have answer TRUE considering that in range A2:A22 the answer is equal to A2

is this what you want

=COUNTIFS('Email 1'!$A$2:$A$22,A2,'Email 1'!$R$2:$R$22)
 
Upvote 0
Thanks for asking the clarifying questions. I would like to take a list of email addresses in Sheet 1, and for each email address, count how many times column R is "TRUE." There are four sheets this value needs to be found/counted:

Sheet 1: Source of Email Addresses, Column C is where the SUM formula would sit.
Sheets 2-5: Is Column R TRUE or FALSE (if TRUE=1, ELSE=0)
 
Upvote 0
Thanks for asking the clarifying questions. I would like to take a list of email addresses in Sheet 1, and for each email address, count how many times column R is "TRUE." There are four sheets this value needs to be found/counted:

Sheet 1: Source of Email Addresses, Column C is where the SUM formula would sit.
Sheets 2-5: Is Column R TRUE or FALSE (if TRUE=1, ELSE=0)
so on sheet1 you'll have a list or e-mail in column A and in column C you want to know how many times that mail shows on the other 4 sheets

on the other sheets the e-mail appears in column A (i suppose for your example)

the column R don't seams to be needed

try like this

=COUNTIF('Email 1'!$A$2:$A$22,A2) + COUNTIF('Email 2'!$A$2:$A$22,A2) + COUNTIF('Email 3'!$A$2:$A$22,A2) + COUNTIF('Email 4'!$A$2:$A$22,A2)
 
Upvote 0
so on sheet1 you'll have a list or e-mail in column A and in column C you want to know how many times that mail shows on the other 4 sheets

on the other sheets the e-mail appears in column A (i suppose for your example)

the column R don't seams to be needed

try like this

=COUNTIF('Email 1'!$A$2:$A$22,A2) + COUNTIF('Email 2'!$A$2:$A$22,A2) + COUNTIF('Email 3'!$A$2:$A$22,A2) + COUNTIF('Email 4'!$A$2:$A$22,A2)
On the other sheets, there is a column (A) of email addresses and a column (R) for whether or not that email address CLICKED.

I want to SUM across sheets 2-5 how many times that individual email address clicked.
 
Upvote 0
ok

try this, had the same for the other sheet

=SUMPRODUCT(--('Email 1'!$A$2:$A$22=A2), --('Email 1'!$R$2:$R$22=TRUE))
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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