CordingBags
New Member
- Joined
- Mar 7, 2022
- Messages
- 43
- Office Version
- 2016
- Platform
- Windows
I currently have a "formula" that requires five "helper" cells to produce a result.
Cell 1, =IF(F5+E5<1,"",VLOOKUP(BB5,'DONT TOUCH'!$C$1387:$D$3164,2,0)), - Does the LOOKUP value appear in Table 1
Cell 2, =IF(F5+E5<1,"",VLOOKUP(BB5,'DONT TOUCH'!$C$1:$D$1189,2,0)), - Does the LOOKUP value in Table 2
Cell BB5 contains sum of F5 and E5 to produce LOOKUP value , almost a sixth helper cell
Cell 3, =IFNA(BA5,""), - Is Cell 1 @NA
Cell4, =IFNA(BA6,""), - Is Cell 2 @NA
Cell 5, =CONCATENATE(BD5,BD6), - Concatenate contents of Cell 3 and Cell 4. for result
I am sure this could be contained within one cell if I can find the correct syntax.
Basic logic of a successful lookup,
Does the LOOKUP value appear in Table 1 if NOT apply same LOOKUP value to Table 2, if the LOOKUP value does not appear in either Table then return a blank, " ".
Conversely if the LOOKUP value appears in Table 1 show the data from column 2, or if the LOOKUP value appears in Table 2 then show the data in column 2.
In each case column 2 shows on which TAB the error is found (duplicate occurs).
On rare occasions the LOOKUP value could occur multiple times on either or both tables.
I appreciate in this scenario only the first "error" will report. Which needs to be cleared before the next will show.
I do not want nor expect a list of "error" entries.
Needs to work with Excel 2016.
This "formula" is replicated 66 times on each of a dozen tabs, very inefficient but does provide the answer.
Any help appreciated
Paul
Cell 1, =IF(F5+E5<1,"",VLOOKUP(BB5,'DONT TOUCH'!$C$1387:$D$3164,2,0)), - Does the LOOKUP value appear in Table 1
Cell 2, =IF(F5+E5<1,"",VLOOKUP(BB5,'DONT TOUCH'!$C$1:$D$1189,2,0)), - Does the LOOKUP value in Table 2
Cell BB5 contains sum of F5 and E5 to produce LOOKUP value , almost a sixth helper cell
Cell 3, =IFNA(BA5,""), - Is Cell 1 @NA
Cell4, =IFNA(BA6,""), - Is Cell 2 @NA
Cell 5, =CONCATENATE(BD5,BD6), - Concatenate contents of Cell 3 and Cell 4. for result
I am sure this could be contained within one cell if I can find the correct syntax.
Basic logic of a successful lookup,
Does the LOOKUP value appear in Table 1 if NOT apply same LOOKUP value to Table 2, if the LOOKUP value does not appear in either Table then return a blank, " ".
Conversely if the LOOKUP value appears in Table 1 show the data from column 2, or if the LOOKUP value appears in Table 2 then show the data in column 2.
In each case column 2 shows on which TAB the error is found (duplicate occurs).
On rare occasions the LOOKUP value could occur multiple times on either or both tables.
I appreciate in this scenario only the first "error" will report. Which needs to be cleared before the next will show.
I do not want nor expect a list of "error" entries.
Needs to work with Excel 2016.
This "formula" is replicated 66 times on each of a dozen tabs, very inefficient but does provide the answer.
Any help appreciated
Paul