Help please!

XKUKII

New Member
Joined
Jun 1, 2015
Messages
7
Hi everyone,

How am I able to put two sets of information from two different columns into one formula? I can do a formula using information from one column but I want to put two columns together.

This is the two separate formulas I'm using now:

=COUNTIFS($B$3:$B$400, ">=PK2G",$B$3:$B$400, "<=PK2G")


=COUNTIFS($C$3:$C$400, ">=5XL",$C$3:$C$400, "<=5XL")

But I want to see if I can't put both these formulas together?

Any help would be much appreciated :D

Thank you!


 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try this.

Howard


Code:
=COUNTIFS($B$3:$B$400,">=PK2G",$B$3:$B$400,"<=PK2G") &" - " &COUNTIFS($C$3:$C$400, ">=5XL",$C$3:$C$400, "<=5XL")
 
Upvote 0
Hi Howard! Thanks for helping me out!

I tried that formula and I got 12-3. I'm not too sure what that means though?

Im trying to get a number which shows me how many people from the PK2G team ordered, for example, 5XL shirts?

I hope this makes sense :(
 
Upvote 0
The formula given from Howard did work, however up until I reached 22 and downwards it doesn't seem to work anymore? Any idea why? Anyone?

Excel1_zpsmrrzpjby.png
 
Upvote 0
The formula showing in T4 has 22 in " " (quotes) so it is looking for text. The T3 value looks to be a number, 22.

Looks like you need to refer to the cell in the row above the formulas, if I am reading this correctly.

So in cell L4 try this =SUMPRODUCT(($B$3:$B$400="PK2G")*($C$3:$C$400=L3)) then pull across.

Howard
 
Upvote 0

Forum statistics

Threads
1,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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