Condition if & AND

Status
Not open for further replies.

kabali

Banned User
Joined
Nov 30, 2022
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a multiple sheets in an excel workbook. The integers 1 and 2 have already been assigned to "Yes" and "No" respectively in each sheets.
What I want to do is that to creating vba code for the following conditions if:
- Q13 = yes and Q15 = No, it means, condition is met
- Q13 = No and Q15 = Yes, it means, condition is met
- Q13 = Yes and Q15 = Yes, it means, condition is met
if not, Not met

I want it to be display the output under the column F by offset 1 row

Please help on this creating a vba code
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Do you want the macro for one sheet or for all the sheets in the book?
The result in F14 or in F16?

Do you have more conditions in the sheet, that is, for example in cells Q17 and Q19?

Or maybe you just need this formula:
Dante Amor
AEFGPQ
1
12
13NO
14
15YES
16Met
Hoja5
Cell Formulas
RangeFormula
F16F16=IF(Q13&Q15="NONO","No met","Met")
 
Upvote 0
Do you want the macro for one sheet or for all the sheets in the book?
The result in F14 or in F16?

Do you have more conditions in the sheet, that is, for example in cells Q17 and Q19?


Or maybe you just need this formula:
Dante Amor
AEFGPQ
1
12
13YES
14
15NO
16Met
Hoja5
Cell Formulas
RangeFormula
F16F16=IF(AND(Q13="NO",Q15="NO"),"No met","Met")


Or:
Excel Formula:
=IF(Q13&Q15="NONO","No met","Met")
I want the macro for all sheets. And the output should be displayed "DestinationSheet" under column F2
 
Upvote 0
Duplicate to:

Please stop duplicating your question. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,063
Messages
6,122,930
Members
449,094
Latest member
teemeren

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