Pulling filled data from 2 columns

Robot1

New Member
Joined
May 19, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
So I have a data set that has formulas to calculate the same data based on different criteria. I have this data in two different columns. I want to combine the columns into one new with all the populated data. If the data is different, I need to error or identify this difference.

Column AColumn BColumn C
CCCC
CODCOD
CODCOD
TermstermsTerms
TermsCODERROR
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Place this formula in cell C2 and copy down:
Excel Formula:
=IF(COUNTA(A2:B2)=1,A2&B2,IF(A2=B2,A2,"ERROR"))

Results:
1711049712216.png
 
Upvote 0
It sort of works but it is giving me a "ERROR" for everything
 
Upvote 0
It sort of works but it is giving me a "ERROR" for everything
A few possible causes:

- You do not have the formula aligned to the correct rows (i.e. formula on row 3 looking at entries in row 2)

- You "blank" cells really are not blank. Maybe there is a space or something in them. Verify that they really are blank.
That can be done with the LEN function, i.e. if cell B4 looks blank, then if you enter the formula =LEN(B4) in any blank cell and see what it returns.
If it returns any number greater than 0, your cell is NOT blank.

- Your values really aren't equal.
Pick an example of one that looks equal. Let's say it is row 5.
Then enter this formula in any blank cell: =A5=B5
If it does NOT return TRUE, then those two cells really are not equal. Check for extra spaces or other characters.

Note if this data came from the web or some other program, the last two issues listed above are VERY common for that type of data, and your data requires a little "scrubbing/cleaning" first before you can get good results from it.
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,327
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top