Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Maybe this formula?
=AND(LEFT(A1,FIND(" ",A1)-1)=LEFT(B1,FIND(" ",B1)-1),TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))=TRIM(RIGHT(SUBSTITUTE(B1," ",REPT(" ",99)),99)),IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=LEN(B1)-LEN(SUBSTITUTE(B1," ","")),MID(A1,FIND(" ",A1&" ")+1,FIND(" ",A1&" ",FIND(" ",A1&" ")+1)-FIND(" ",A1&" ")-1)=MID(B1,FIND(" ",B1&" ")+1,FIND(" ",B1&" ",FIND(" ",B1&" ")+1)-FIND(" ",B1&" ")-1),TRUE)) -- Rick (MVP - Excel) Maybe, but we don't have enough information yet. One thought, based on only on looking quickly at your formula, is that it only compares A1 & B1. My guess would be that we need to compare all of column B with A1. Ahh, yes, you might be right on that. That would probably require a macro then, I would guess. -- Rick (MVP - Excel) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formulas are becoming text strings | Excel Discussion (Misc queries) | |||
problem with comparing strings in VBA | Excel Discussion (Misc queries) | |||
Comparing text strings in cells | Excel Discussion (Misc queries) | |||
Comparing text strings in cells | Excel Discussion (Misc queries) | |||
Combining text strings | Excel Worksheet Functions |