multiple conditions

neveu

Board Regular
Joined
Jan 27, 2009
Messages
225
hello Forum,
i would need your help to crack the next problem:

i have a column with different numbers and another column with statuses atributed to those numbers ( "ok", canceled", "-")

the number in first column can appear multiple times. if they number appear more that one they are grouped one after the other.

what i would need to do is that if the number in a group have on the opposite column the info as "ok" or canceled", the number in that group should get the status "processed", otherwise will appear "don't process".this message should appear in the column next to the number group.

any ideas how to do this?

attached the image on how the information is:
http://imageshack.us/
Uploaded with ImageShack.us
thank you,
neveu
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You'll get a lot more helpers if you post samples directly in your post. My signature block below contains 3 methods for posting small screen shots. Test them in the Test Here forum. That way, if something goes wrong, you won’t be messing up a main forum.

See if something like this, copied down, is what you want.

Excel Workbook
ABC
1
21okprocess
31ok
41canceled
52okdon't process
62-
72-
83okprocess
status
 
Upvote 0
Hi Peter,

thank you very much. the formula works fine.

there is one additional situation that i forgot to mention - in the second collumn there is another value possible - the error #NA (as i'm using vlookup to lookup these values from another file)

i've tried to tweek the formula to cover this situation but unfortunatly didn't find the right solution.

so, when there is an #NA value on the second column, the overal group number should show "don't process".

do you think you could help me?

thank you very much. i really appreciate a lot your help.
best regards,
neveu
 
Upvote 0
Try

=IF(A2=A1,"",IF(COUNTIFS(A$2:A$20,A2,B$2:B$20,"-")+COUNTIFS(A$2:A$20,A2,B$2:B$20,"#N/A"),"don't process","process"))

(I assume you must have access to at least 2 versions of Excel? The formulas suggested in this thread require Excel 2007+ but the other thread I was helping in you said you were using Excel 2003)
 
Upvote 0
Hi Peter,

I'll try to replace countifs with sumproduct so the formula will be available for 2003 version.

thank you very much for your support

regards,
neveu
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,238
Members
448,555
Latest member
RobertJones1986

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