If statement assistance

dsami0122

New Member
Joined
Mar 31, 2016
Messages
40
Office Version
  1. 365
Platform
  1. Windows
1705070972447.png

I am trying to get an If statement based on the data sample

If F:F from PDC Tab = "Labor" then sumif P:P from PDC Tab matching A:A from PDC Tab with B:B for Summary Tab

I will repeat the formula for items in F:F that read "NON-Labor"

IF(DATA_PDC!F:F= "LABOR",SUMIFS(DATA_PDC!P:P,DATA_PDC!A:A,B4))
this is what I have and I get a Spill error
 
Last edited by a moderator:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You don't nee the IF part of the function. SUMIFS should take care of what you need. What is in Cell B4? One of the Project ID's? You could write it like this:
=SUMIFS(DATA_PDC!P:P,DATA_PDC!A:A,B4,DATA_PDC!F:F,"Labor")

Or use a cell with Labor in it just like you did with the Project ID
 
Upvote 0

Forum statistics

Threads
1,215,385
Messages
6,124,626
Members
449,174
Latest member
Anniewonder

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