Fourmla if cells met criteria

Novman

New Member
Joined
Feb 19, 2023
Messages
20
Office Version
  1. 365
Platform
  1. Windows
If cell A3 is "text" and cell B3 contains the word "text" and cell D3 has any text return cell C3..
 

Attachments

  • Screenshot_20230304_223045_Microsoft 365 (Office).jpg
    Screenshot_20230304_223045_Microsoft 365 (Office).jpg
    153.3 KB · Views: 13

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
someyhing like this ??
Excel Formula:
=IF(and(A3="car",B3="light blue",d3<>""),c3,"")
 
Upvote 0
someyhing like this ??
Excel Formula:
=IF(and(A3="car",B3="light blue",d3<>""),c3,"")
Thank you for your reply.... but in cell B3 I only want to serch for "blue" like part text not the hole text
 
Upvote 0
Try
Excel Formula:
=IF(AND(A3="car",COUNTIF(B3,"*blue*"),D3<>""),C3,"")
 
Upvote 0
Adjusting Michael's formula based on your image rather than your text, I think that you could actually be looking for this?

23 03 05.xlsm
ABCDE
3carlight blue44238
4vanlight blue6 
5Carwhite2 7623
6carsky blue554453
7carblack9 6521
8carwhite1 
9carbluebottle aqua33658
Novman
Cell Formulas
RangeFormula
D3:D9D3=IF(AND(A3="car",COUNTIF(B3,"*blue*"),E3<>""),C3,"")


Also, if you could possibly have something like row 9 and did not want to include that in the results because it does not contain the "word" "blue" then you could try this formula instead.

Excel Formula:
=IF(AND(A3="car",ISNUMBER(SEARCH(" blue "," "&B3&" ")),E3<>""),C3,"")
 
Upvote 0
Thank you for your replys but either fourmlas use give me is not returning what I'm looking for, iv attached another photo to see it helps more.
 

Attachments

  • Screenshot_20230306_214725_Microsoft 365 (Office).jpg
    Screenshot_20230306_214725_Microsoft 365 (Office).jpg
    212.6 KB · Views: 10
Upvote 0
So rather than post screenshots, use the xl2bb to upload actual data that we can work with....see my tag for downloading.
 
Upvote 0
So rather than post screenshots, use the xl2bb to upload actual data that we can work with....see my tag for downloading.
Iv tried downloading the xl2bb file, got it downloaded but when I try to open it I get mesage saying this file type is not supported in protected view, any ideas what I need to do
 
Upvote 0
Maybe this then
VBA Code:
=IF(AND(A3="car",COUNTIF(B3,"*blue*")>0,E3<>""),"",C3)
 
Upvote 0
Iv tried downloading the xl2bb file, got it downloaded but when I try to open it I get mesage saying this file type is not supported in protected view, any ideas what I need to do
Have you put it in a Trusted Location? See if this helps.
 
Upvote 0

Forum statistics

Threads
1,223,871
Messages
6,175,099
Members
452,612
Latest member
MESTeacher

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