vlookup comparison

manojxls

New Member
Joined
Dec 21, 2017
Messages
24
Office Version
  1. 365
  2. 2007
  3. 2003 or older
Platform
  1. Windows
HI
I have data like

ABCDEF
accountold.countaccountnew.count
123456782123456785=5-2=3
A |B | D | E |F |REQUIRED ANSWER
account# |old.count | account# | new.count |
12345678 |2 |12345678 |5 |=VLOOKUP | =5-2=3
23456789 |4 |23456789 |4 | |=4-4=0
78945612 |2 |78945612 |3 | | =3-2=1
78945615 |1 |78945615 |3 | |=3-1=1
|45678912 |2 | |=NEW ACCT

Can anyone help me to vlookup or any formula so i compare AB column(OLD COUNT) with DE column(NEW COUNT) SO i can get difference in count., please suggest.thanks Manoj
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Can you post a sample data in xl2bb (Available in right hand side of reply area) .
Your post is not readable for me
 
Upvote 0
Not sure from your jumbled data! But maybe

=IF($D3="","New Account",$E3-VLOOKUP($D3,$A$3:$B$7,2,0))

1594239376571.png
 
Upvote 0
I think this will help

=SUBSTITUTE(E2,"|","")-SUBSTITUTE(vlookup(D2,A:B,2,0),"|","")
 
Upvote 0
If the Number contain text "|" then use that otherwise change the "|" to other text.
 
Upvote 0
Upvote 0
Not sure I understand, maybe

=IF($A3="","New Account",$E3-VLOOKUP($D3,$A$3:$B$7,2,0))
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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