Countif Formula with multiple criteria

nabeelahmed

Board Regular
Joined
Jun 19, 2020
Messages
76
Office Version
  1. 365
Platform
  1. Windows
Dear Friends,

I am trying to use Countif for multiple criteria but unfortunately not able to do, i am able to use only for one criteria for workbook1 [ =C6&"-"&COUNTIF(C$1:C6,C6) ]
Actually i have two workbooks where i am using same serial number as entered in Workbook1 column"C" and Workbook2 Column"J"
i want that when i will use same serial number in 2nd workbook which is already in used in 1st workbook should be shown that it is already entered in 1st workbook so that there will be no duplication in serial number.

1595924390459.png


Thanks

Nabeel
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I am confused as to what you want???

Do you want to the result to display "Already entered" in Rows in Column I of workbook 2 if you enter 200 (As 200 is multiple times entered in workbook 1) or you want to enter 200-Count (Total Count of 200 in Workbook 1 and Count of 200 in workbook 2)

Please post a sample of desired result
 
Upvote 0
use countifs: sample formula: =COUNTIFS($G$10:$G$17,Q3,$I$10:$I$17,R3)
 
Upvote 0
Is this other workbook closed
Are you using version 2007 of excel sas in profile ?

if so try
=COUNT(IF('path to work book/[workbook1.xlsx]Sheet1'!$c:$c='path to work book/[workbook2.xlsx]Sheet1'!j6,1))

where c is the column to look up the value and j6 is the value you are looking for
 
Upvote 0
I am confused as to what you want???

Do you want to the result to display "Already entered" in Rows in Column I of workbook 2 if you enter 200 (As 200 is multiple times entered in workbook 1) or you want to enter 200-Count (Total Count of 200 in Workbook 1 and Count of 200 in workbook 2)

Please post a sample of desired result
 
Upvote 0
Dear All friends, thanks for all of you for the reply.. I think i could't explain what i desire.. so i am sending new sample shot below

In workbook1 column"C" 200 is entered 6 times and for the same count is showing in column"B"
I want that when i will work in workbook2 and will enter the same serial number in column"J" , in column "I" the count should be shown 200-7

my excel version ( Office 365 Business)
one workbook might be open at a time

1595932944948.png
 
Upvote 0
How about
Book1
BCDEFGH
1WorkbookWorkbook
2
3200-1200201-2201
4200-2200
5200-3200
6200-4200
7200-5200
8201-1
9200-6
10
11
12
13
14
15
16
17
Sheet1
Cell Formulas
RangeFormula
G3G3=H3&"-"&MAX(IFERROR(MID(B3:B17,SEARCH(H3,B3:B17)^0*SEARCH("-",B3:B17)+1,999)+0,0))+1
 
Upvote 0
One more question
What should happen if i insert 200 twice in Column H.
What result should i get????
 
Upvote 0

Forum statistics

Threads
1,215,294
Messages
6,124,101
Members
449,142
Latest member
championbowler

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