Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to compare columns and output the results
Hi,
I have another question. I'm comparing two pairs of columns (Column D with E, Column F with G. The data in these are vlookup-ed from other sheets) and putting down the comparison results in Column H. If Column D & E matches, Column F & G matches = Column H results: "ID matches, number of files matches" If Column D & E matches, Column F & G does NOT match = Column H results: "ID matches, number of files does NOT match" If Column D & E does NOT match, Column F & G match = Column H results: "ID does NOT match, number of files matches" If Column D & E does NOT match, Column F & G does NOT match = Column H results: "ID does NOT match, number of files does NOT match" If EITHER Column D & E is #N/A.... instead of "ID does not match" substitute with "ID contains #N/A" in the results in Column H. Same for Column F & G, if #N/A is present, substitute "Number of files does not match" with "Number of files contains #N/A". So in Column H there will also be combinations like "ID matches, number of files contains #N/A", "ID contains #N/A, number of files does NOT match", and so on. Using EXACT with much filtering/sorting can do the job, but it would be great if this can be done with a macro :-) TIA Beth |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Lookup 2 columns of data, perform, match, output results | Excel Worksheet Functions | |||
Compare 2 Columns, then output a list | Excel Programming | |||
how to compare two columns and get a output from it | Excel Worksheet Functions | |||
Compare 2 columns and output to a 3rd column | Excel Discussion (Misc queries) | |||
Macro to match output from 2 columns... | Excel Programming |