Create List of Tickets

carling73

Board Regular
Joined
Sep 7, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
Hey, so i'm trying to find a way of keeping a "live" list of what tickets are held by a customer at any one time so -

There are 100 tickets numbered 1-100

Bob holds tickets 1,5,10, 15, 20, 25 and has recorded these tickets in A2, B2, C2, D2, E2, F2

Bob is looking to trade tickets with Freda

Bob records the tickets he's offering in A3, B3, B3, (Ticket numbers 1,5,10)
Bob records the tickets Freda is offering in A4, B4 (Ticket numbers 16, 23)

How does Bob write a formula to amend the record in A2:F2 to show 15, 16, 20, 23, 25, Blank instead of 1, 5, 10, 15, 20, 25

Bob will go on to make multiple trades and wants to keep the list upto date in line 2

Hops that makes some kind of sense, Thanks all

Excel 2.png
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi, according to Excel basics a VBA demonstration for starters :​
VBA Code:
Sub Demo1()
    Dim A$, C%, V
        A = "A3:" & Cells(3, Columns.Count).End(xlToLeft).Address
        C = Cells(4, Columns.Count).End(xlToLeft).Column
        Application.ScreenUpdating = False
    With Range("A2", Cells(2, Columns.Count).End(xlToLeft)).Columns
         Range(Join(Evaluate("IF({1},ADDRESS(2,MATCH(" & A & "," & .Address & ",0)))"), ",")).Clear
         [A4].Resize(, C).Cut .Cells(.Count)(1, 2)
        .Resize(, .Count + C).Sort .Cells(1), 1, Header:=2, Orientation:=2
    End With
        Range(A).Clear
        Application.ScreenUpdating = True
End Sub
 
Last edited:
Upvote 0
Solution
I forgot to remove at the end of the Dim codeline , V …​
 
Upvote 0
Marc L, thats amazing thanks mate, really appreciated THANK YOU!
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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