Ifs and/ or functions

Ary

New Member
Joined
Feb 28, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I don’t know if this makes sense. I know little with excel formulas so I really need help for this. Thank you in advance. I want to match column A and B or find the “Due” in column B. So if transaction no. 201603001508 (Column A) has a particular “Due” (Column B) then Column D will say “YES” for all transactions with no. 201603001508. I hope you can help me with this. Thank you!!!!
 

Attachments

  • C7AA3D0F-0E0F-4BBC-8790-58D3F586C859.jpeg
    C7AA3D0F-0E0F-4BBC-8790-58D3F586C859.jpeg
    234.3 KB · Views: 5

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the Board!

Place this formula in cell D2 and copy down for all rows:
Excel Formula:
=IF(COUNTIFS(A:A,A2,B:B,"Due")>0,"YES","")
 
  • Like
Reactions: Ary
Upvote 0
Solution
Just put the word NO between the "", i.e.
Excel Formula:
=IF(COUNTIFS(A:A,A2,B:B,"Due")>0,"YES","NO")
 
Upvote 0
Just put the word NO between the "", i.e.
Excel Formula:
=IF(COUNTIFS(A:A,A2,B:B,"Due")>0,"YES","NO")
I tried this one but it says ‘There’s problem with the formul’
=IF(COUNTIFS(A:A,A2,B:B,"Due")>0,"YES","NO")
 
Upvote 0
I tried this one but it says ‘There’s problem with the formul’
=IF(COUNTIFS(A:A,A2,B:B,"Due")>0,"YES","NO")
That formula is valid (I tested it and it works for me).

If you are getting errors, then check for the following:
1. Do you have any errors in columns A or B?
2. Do you have any merged cells in columns A or B?
 
Upvote 0
I recreated your data, and this is what it looks like for me:
1646082222383.png
 
Upvote 0
I recreated your data, and this is what it looks like for me:
View attachment 58963I just realized that the error was due to typo error. ? apologies. Anyway, maybe you can help me more with this. I’m trying to copy the description to other cells with the same transaction number. Thank you for the help and patience ?
 

Attachments

  • 896CB92B-BBC7-4D70-A399-733838A64CD0.jpeg
    896CB92B-BBC7-4D70-A399-733838A64CD0.jpeg
    249.6 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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