SUM not returning the value

Stanman

New Member
Joined
Jan 15, 2020
Messages
44
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi,

I had the countIFS as a separate table and decided to try and see if I could add the IF to it to remove an additional step. It worked but messed up the sum, which was showing the right number but now returns a zero. I have formatted the cell to number but still no joy.

The COUNTIF is counting how many times a text occurs and the 1 is to remove duplicate counts.

The formula is =IF(COUNTIFS(Data_Sheet!$F$2:$F$4000,A2,Data_Sheet!$C$2:$C$4000,$P$1)>=1,"1",(COUNTIFS(Data_Sheet!$F$2:$F$4000,A2,Data_Sheet!$C$2:$C$4000,$P$1)))

Thank you

DOH DOH, sorry ignore fixed :) Had "1" around the returned value and counting it as text.
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hey,
Try this one

IF(COUNTIFS(Data_Sheet!$F$2:$F$4000,A2,Data_Sheet!$C$2:$C$4000,$P$1)">=1","1",(COUNTIFS(Data_Sheet!$F$2:$F$4000,A2,Data_Sheet!$C$2:$C$4000,$P$1)))
 
Upvote 0
Fixed it the issue was enclosing the return value in " " and that was treating it as text

=IF(COUNTIFS(Data_Sheet!$F$2:$F$4000,A2,Data_Sheet!$C$2:$C$4000,$D$1)>=1,1,(COUNTIFS(Data_Sheet!$F$2:$F$4000,A2,Data_Sheet!$C$2:$C$4000,$D$1)))
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

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