# Combining Formulas

#### shakeregg

##### New Member
Hey all,

Hopefully a simple question for you lot but unfortunately not for me!

=IF(INDEX(T:T,MATCH(E5,AF:\$AF,0))=H5,"Yes","")

=IF(INDEX(S:S,MATCH(E5,AF:\$AF,0))=G5,"Yes","")

I have the above formulas in two different cells but I'm wanting to combine them both together. So that if both are Yes' it be a Yes otherwise it'll be a No.

Can provide more detail if needed.

Any help would be muchly appreciated!

Cheers

Matt

Last edited:

### 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.

#### FormR

##### MrExcel MVP
I'm wanting to combine them both together. So that if both are Yes' it be a Yes otherwise it'll be a No.
Hi, you could try:

=IF(AND(INDEX(T:T,MATCH(E5,AF:\$AF,0))=H5,INDEX(S:S,MATCH(E5,AF:\$AF,0))=G5),"Yes","No")

#### shakeregg

##### New Member
Perfect............. works a treat! Thankyou!

Although I've now encountered another slight problem but will have to start a thread as it's a different topic heading!

Cheers again!

1,102,778
Messages
5,488,823
Members
407,658
Latest member
Arias610

### This Week's Hot Topics

• Timer in VBA - Stop, Start, Pause and Reset
[CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
• how to updates multiple rows in muliselect listbox
Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
• Delete Row from Table
I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
• Assigning to a variable
I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
• Way to verify information
Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
• Active Cell Address – Inactive Sheet
How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...