populate cell based on cell values in same row

theonlyhamish

New Member
Hi folks, first time be gentle lol. Ive had a look at similar questions but im still not managing to get this one.

Im trying to populate column J (this year) based on the specific values in columns B (type), E (date last visit), G (score) and H (urgent) in the same row.

so in my simplistic nature - if B=(a,b,c) + E is less than 1-4-21 + G=3 and H=(HIGH, MEDIUM) the J displays 'Y'

Ive looked at versions of Vlookup and If criteria but im spiraling lol ... any help would be fantastic.

Attachments

• Capture.PNG
15.9 KB · Views: 3

Excel Facts

Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Special-K99

Well-known Member
By this

if B=(a,b,c) + E is less than 1-4-21 + G=3 and H=(HIGH, MEDIUM) the J displays 'Y'

do you mean this?

If B = a or b or c and E is less than 1-4-21 and G=3 and H= High or Medium then J display Y

If so then try

in J2
=IF(AND(OR(B2="a",B2="b",B2="c"),E2<"01-04-21",G2=3,OR(H2="High",H2="Medium")),"Y","")

alansidman

Well-known Member
=IF(AND(OR(B1="a",B1="b",B1="c"),E1<DATEVALUE("1/4/21"),G1=3,OR(H1="HIGH",H1="MEDIUM")),"Y","N")

Sum positive and negative nos separately.xlsx
BCDEFGHIJ
1a1/2/20213HIGHY
2b4/25/20212MEDIUMN
3c1/2/20213MEDIUMY
Sheet2
Cell Formulas
RangeFormula
J1:J3J1=IF(AND(OR(B1="a",B1="b",B1="c"),E1<DATEVALUE("1/4/21"),G1=3,OR(H1="HIGH",H1="MEDIUM")),"Y","N")

theonlyhamish

New Member
Brillian!, thanks Gurus!

Replies
31
Views
845
Replies
0
Views
56
Replies
10
Views
253
Replies
0
Views
64
Replies
11
Views
131

1,147,747
Messages
5,742,966
Members
423,769
Latest member
LongToast

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.

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

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