Multiple IF conditions

venky2002

New Member
Joined
Mar 27, 2023
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
I have a list of products in sheet 1 and sheet 2, my query is to tag products in sheet one if the product is tagged as "initial" in one column and has a EOS date in other column, if both the conditions satisfies then in sheet 1 the formula should say "YES" if both the conditions doesn't satisfy then "No".

Sample data
Sheet 1
ProductFormula required EOS
AYES
BNO
CYES
DNO
Sheet 2
ProductScenarioEOS
AInitial4/4/2022
BExpansion4/4/2022
CInitial4/4/2022
DExtension4/4/2022
 
In that case, how about
Excel Formula:
=IF(COUNTIFS(Sheet2!A:A,A2,Sheet2!B:B,"Initial",Sheet2!C:C,"<>"),SUMIFS(Sheet2!C:C,Sheet2!A:A,A2,Sheet2!B:B,"Initial"),"No")
thank you, but did not work, in sheet 1 i need the column b sheet 1 to return values as mentioned, if the scenario is "initial" in sheet 2 column B and has a date in column c, then in sheet 1 column b the value for the product should return date for initial and blank for expansion and extension. as mentioned below for sheet 1.

sheet1
ProductFormula required EOS
A
4/4/2022​
B
C
4/4/2022​
D
Sheet2
ProductScenarioEOS
AInitial
4/4/2022​
BExpansion
4/4/2022​
CInitial
4/4/2022​
DExtension
4/4/2022​
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
In what way didn't it work?
I'm getting too many arguments error, refer sheet 6 column G in the attached file.
Sheet 5
DesNumProductEditionModelVerticalTermedScenarioInternal StartExternal StartTxn StartInternal EndExternal EndTxn EndProduct EOL DateProduct IdPH IdPH DescriptionAAGEditionModelVerticalTermScenarioDate
AInitial
3/28/2023​
AExtension
3/28/2023​
AExpansion
3/28/2023​
BInitial
3/28/2023​
BExtension
3/28/2023​
BExpansion
3/28/2023​
CExtension
3/28/2023​
CExpansion
3/28/2023​
DExtension
3/28/2023​
DExpansion
3/28/2023​
Sheet 6
prodesNumNumNumProductColumn2Column2Column2Column2Column2
A=IF(COUNTIFS(Sheet5!C:C,Sheet6!F2,Sheet5!H:H,"Initial",Sheet5!N:N,"<>"),SUMIF(Sheet5!N:N,Sheet5!C:C,Sheet6!F2,Sheet5!H:H,"Initial"),"")
B
C
D
I'm receiving too many arguments error for Sum if condition sheet 5 H:H
 
Upvote 0
It should be SUMIFS plural not SUMIF.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,254
Members
448,556
Latest member
peterhess2002

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