Multiple criteria condition forumla

Li_zzza

New Member
Joined
Oct 3, 2017
Messages
13
Hi everyone,

I'm hoping someone here can help me (after spending hours of researching, I cannot find the solution to this).

I am working on a project around tracking certain items being sent out to certain providers and monitoring if we get anything back from the providers. However, the items are being sent out to multiple providers and sometimes one provider. I need a formula or a condition that calculates if everything is returned by the providers or provider it will say "complete" under the received all column.

Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Item[/TD]
[TD]Provider 1[/TD]
[TD]Provider 2[/TD]
[TD]Provider 3[/TD]
[TD]Received all?[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sock[/TD]
[TD]Received[/TD]
[TD]Sent[/TD]
[TD]Received[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Shirts[/TD]
[TD][/TD]
[TD]Received[/TD]
[TD]Received[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Computers[/TD]
[TD]Received[/TD]
[TD][/TD]
[TD]Sent[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Laptops[/TD]
[TD]Received[/TD]
[TD]Received[/TD]
[TD]Received[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Shoes[/TD]
[TD]Received[/TD]
[TD][/TD]
[TD]Received[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Currently, I have the formula in E2 as =If(and(B2="Received",D2="Received"),"Complete","") but it disregards cell C2. Is there a way to add C2 into the formula, but disregard if it is empty or says the word sent?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try:
Code:
=IF(COUNTIF(C$2:E$2,"Received")/COUNTA(C$2:E$2)=1,"Complete","")
 
Upvote 0
Many Thanks, Jack. It works perfectly, but it won't work for empty cells. For example, in row 4, I'm not sending out computers to provider 2. So I want E4 to say, Complete once D4 is changed to received, instead of sent.
 
Upvote 0
I do not follow. Using your example, I just changed E4 to Complete from Sent and F4 changed from showing no value to Complete; is that not what you want?

Can you clarify stating the values before and then what happens when you make the require change?
 
Upvote 0
So let's take row 4 from my data set as an example, I sent computers out to Provider 1 and Provider 3. I received my invoices from Provider 1 but not from Provider 3 yet. therefore D4 is only sent and not received.

I'm hoping that once I typed in Received in Provider 3, E4 will change to complete.

When I entered the formula you gave in my workbook, it required that I have something in all of the cells for it to say "Complete" But not all the cells will be filled out. I only will fill out the cells that needs to be filled out.

I hope this helps!
 
Upvote 0
Hi Jack,

So sorry to bother again, but I've been racking my brain trying to figure this out. Your formula works perfectly when the columns are next to each other, but what happens if there are other columns in between and something else is written in them that does not pertain to the Complete status or not?

For example,
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]Items[/TD]
[TD]Provider 1[/TD]
[TD]Date 1[/TD]
[TD]Provider 2[/TD]
[TD]Date 2[/TD]
[TD]Provider 3[/TD]
[TD]Date 3[/TD]
[TD]Received all?[/TD]
[/TR]
[TR]
[TD]Shoes[/TD]
[TD]Received[/TD]
[TD]23/10/2017[/TD]
[TD]Sent[/TD]
[TD]14/10/2017[/TD]
[TD]Received [/TD]
[TD]23/10/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shirts[/TD]
[TD][/TD]
[TD][/TD]
[TD]Recieved[/TD]
[TD]23/10/2017[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Laptops[/TD]
[TD]Recieved[/TD]
[TD]23/10/2017[/TD]
[TD]Recieved[/TD]
[TD]23/10/2017[/TD]
[TD]Recieved[/TD]
[TD]23/10/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pens[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Sent[/TD]
[TD]23/10/2017[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Try:
Code:
=IF(COUNTIF(B2:G2,"Received")*2/COUNTA(B2:G2)=1,"Complete","")
 
Upvote 0
Unfortunately, that doesn't work. If there is something written B2:G2 despite it being a date or comment, the formula will take into consideration instead of disregarding it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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