Urgent Excel 2003 question

marieemery

New Member
Joined
Aug 3, 2011
Messages
5
Please can you help with creating a formula for the following?

My colleage has sent me a file with COUNTIFS however this function doesn't appear to work in excel 2003 and I understand that I may need to use SUMPRODUCT?

I have 2 spreadsheets in a workbook that list employee names, employee numbers:
1. Spreadsheet has employee name, number, absence code and absence in hours/days (only for employees with absence in the last month)
2. Spreadsheet has all employee details including name, number etc

I am trying to create a formula that will pull the absence data from sheet and input this into sheet 2. It would need to pick up both the employee number, absence code

Hope this makes sense
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,
Can you post the CountIfs Formula? Or is it just a bunch of #REF errors now ...
 
Upvote 0
Perhpas I need to use a VLOOKUP?

The absence data is on one sheet and the full employee details is on the other - I need to pull through for those employees who have had sick leave the amount of instances of absence codes

So something like... if this employee number = this employee number and has instances of 0200 absence, count these and return the value here in (days / hours)
 
Upvote 0
Okay,
try this:
SUMPRODUCT(--(ALVXXL01!$A:$A=$C$4),--(ALVXXL01!$C:$C="0200"))

I actually don't know if sumproduct works on whole columns ... we may be about to find out ....


----------------
Though countif/countifs won't be in days, hours ... just "number of instances" ...
 
Upvote 0
Okay,
so try:
=SUMPRODUCT(--(ALVXXL01!$A$1:$A$1000=$C$4),--(ALVXXL01!$C$1:$C$1000="0200"))

Maybe it's the whole column thing ....
If that doesn't work we'll ask what's in C4 and some sample data from A1:A10 and C1:C10
 
Upvote 0
A good point from shg in a similar thread just recently:

Are the values you're searching for numeric, and some of the values in the columns numbers stored as text (which will be immediately apparent if you lave Excel's default alignment alone)?

COUNTIF will ignore the distinction, SUMPRODUCT won't.

So our use of sumproduct could give different results, possibly ...


shg's post mentioned:
(http://www.mrexcel.com/forum/showthread.php?t=416975&page=2)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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