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
So rather than post screenshots, use the xl2bb to upload actual data that we can work with....see my tag for downloading.
Table Help.xlsm
BCDEFGHIJKLMN
2WorkingNo Formula
3CARLIGHT BLUE2385 CARLIGHT BLUE2385
4CARgrey88CARgrey8
5CARwhite2013 CARwhite20133
6carblack6324 carblack63244
7cargrey11cargrey1
897
9
10
11Above is a short table with formula in green cellAbove is a short table were I would like to put a formula
123 checks and 1 returnCoolum M is what I would like the formula to return
13Check 1. does B3:B7 = car if I3:I7 = "car"
14Check 2. does C3:C7 not have word blueDoes J3:J7 not contain word "blue"
15Check 3. does D3:D7 not have any textDoes K3:K7 have any text
16Retune. If all criteria is met return E3:E7 in F3:F7If all criteria is met return L3:L7 in M3:M7
17
18The differences between the 2 formulas would be
19theses parts of the formula
Sheet1
Cell Formulas
RangeFormula
F3:F7F3=IF(AND(B3="CAR",ISERROR(SEARCH("BLUE",C3)))*(D3=""),E3," ")
F8,M8F8=SUM(F3:F7)
 
Last edited by a moderator:
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Excel Formula:
=IF(AND(H3="CAR",ISERROR(SEARCH("BLUE",I3)))*(J3<>""),K3,"")
 
Upvote 0
Solution
that fourmla works great, again thank you
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,152
Members
452,615
Latest member
bogeys2birdies

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