Embedded Index and Match and If statements

Taneasy

New Member
Joined
Mar 3, 2012
Messages
7
{=IFERROR(VLOOKUP(IF(COUNTIF(Table1,INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$C8,Sheet1!L$2:L$343),0)))>1, "Double", INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$C8,Sheet1!L$2:L$343),0))),Table1,7,FALSE)&") "&(IF(COUNTIF(Table1,INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$C8,Sheet1!L$2:L$343),0)))>1, "Double", INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$C8,Sheet1!L$2:L$343),0)))), "")}

Can anyone make this formula more efficient, or write it in VBA?

I would like to use the Named ranges, however this formula has to be replicated 15 columns across and 35 rows down. The formula is correct as is and can be dragged/copied. in a table.

All of the named ranges are arrays

Thanks.
 
Last edited:

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Taneasy

New Member
Joined
Mar 3, 2012
Messages
7
Sorry the formula I added was from the clipboard and was messed up... this is the correct formula.

=IFERROR(IF(COUNTIF(Table1,INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$E8,Sheet1!L$2:L$805),0)))>1, "Double",(VLOOKUP(INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$E8,Sheet1!L$2:L$805),0)),Table1,7,FALSE)&") "&(INDEX(Table1[User ID], MATCH("Yes", IF(Table1[Asset]=Sheet2!$E8,Sheet1!L$2:L$805),0))))), "")
 

Forum statistics

Threads
1,089,579
Messages
5,409,119
Members
403,252
Latest member
Keithn1720

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top