Match and copy data with a formula

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello experts

I am trying to write a formula in column B to enter the same date in “Tally” as in "Portal". The common values are the amount and approximate date. If the date and amount are a match, in column B, I want to have the date in “Tally” as per "Portal" if the above condition are right. I can change it manually one by one but as the data is huge a formula would be very helpful and will save a lot of time.
I have already entered a formula in column B but it is not working correctly.


Match Invoice No. Query.xlsx
ABCDEF
1As perCommon NumberInvoice numberDateAmountRemarks
2PORTALKR-POS-3564KR-POS-356416-01-20211014.00Correct
3TALLYKR-POS-3564Jan-6416-01-20211014.00Correct
4PORTAL2560/20-212560/20-2113-03-20211025.00
5TALLYKR-POS-3564256013-03-20211025.00Error
6PORTALHS/20-21/669HS/20-21/66920-01-20211033.00
7TALLYKR-POS-3564Jan-669 20-01-20211033.00Error
8PORTALKR-POS-2035KR-POS-203510-10-20201040.00
9TALLYKR-POS-3564203515-10-20201040.00Error
10PORTAL626214-06-20201043.00
11PORTALM200831001363574M20083100136357431-08-20201044.30
12PORTAL123/GST123/GST10-07-20201050.00
13TALLYKR-POS-3564xx 10-07-20201050.00Error
14PORTAL0641/20-210641/20-2113-10-20201052.00
15TALLYKR-POS-356464113-10-20201052.00Error
16PORTALKR-POS-540KR-POS-54017-06-20201053.00
17PORTALFT2129I005276327FT2129I00527632706-02-20211060.82
18PORTALKR-POS-2183KR-POS-218320-10-20201064.00
19PORTALIN-QWN9-17483IN-QWN9-1748303-09-20201070.00
20PORTALKA-5522-20-21KA-5522-20-2116-12-20201071.00
21PORTALKA-6051-20-21KA-6051-20-2129-12-20201071.00
22TALLYKR-POS-3564Dec-2216-12-20201071.00Error
23TALLYKR-POS-3564Dec-5118-12-20201071.00Error
24PORTALKR-POS-914KR-POS-91425-07-20201074.00
25TALLYKR-POS-356491425-07-20201074.00Error
26PORTAL1477/20-211477/20-2121-12-20201100.00
27TALLYKR-POS-3564Dec-1477 21-12-20201100.00Error
28PORTAL0227/20-210227/20-2125-08-20201131.00
29TALLYKR-POS-356441425-08-20201131.00Error
30PORTALKR-POS-4508KR-POS-450816-03-20211138.00
31TALLYKR-POS-3564KR-POS-4508 16-03-20211138.00Error
32PORTALHS/20-21/195HS/20-21/19518-08-20201147.00
33TALLYKR-POS-356437918-08-20201147.00Error
34PORTAL1795/20-211795/20-2116-01-20211173.00
35PORTAL2509/20-212509/20-2110-03-20211173.00
36TALLYKR-POS-3564Jan-1795 16-01-20211173.00Error
37TALLYKR-POS-3564250910-03-20211173.00Error
38PORTALKR-POS-1210KR-POS-121013-08-20201182.00
39TALLYKR-POS-356435313-08-20201182.00Error
40PORTAL12312326-06-20201192.00
41PORTALKA-2021-962172KA-2021-96217231-12-20201197.87
42PORTAL6726672625-12-20201239.00
43TALLYKR-POS-3564Dec-2625-12-20201239.00Error
44PORTALKR-POS-1463KR-POS-146302-09-20201255.00
45TALLYKR-POS-356445002-09-20201255.00Error
46PORTAL2198219808-12-20201260.00
47TALLYKR-POS-3564Dec-9805-12-20201260.00Error
48PORTALIN-46253IN-4625329-06-20201266.00
49PORTAL10210219-06-20201267.00
50PORTALKA-5451-20-21KA-5451-20-2114-12-20201279.00
51TALLYKR-POS-3564Dec-5114-12-20201279.00Error
B2B July-Mar + Tally
Cell Formulas
RangeFormula
B2:B51B2=IF(A2="PORTAL",C2,IF(COUNTIFS(B:B,"PORTAL",D:D,D2,E:E,E2),C2,C1))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A:BCell Value="tally"textNO
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
See if this gives the right results.
Excel Formula:
=IF(A2="PORTAL",C2,IF(COUNTIFS(A:A,"PORTAL",D:D,D2,E:E,E2),C1,C2))
 
Upvote 0
Solution
See if this gives the right results.
Excel Formula:
=IF(A2="PORTAL",C2,IF(COUNTIFS(A:A,"PORTAL",D:D,D2,E:E,E2),C1,C2))
It's perfect. Jasonb75. Thank You Genius
 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,323
Members
448,887
Latest member
AirOliver

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