+ Reply to Thread
Results 1 to 10 of 10

Need to run credit card checks versus database of invoices

  1. #1
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Need to run credit card checks versus database of invoices

    hi all.

    This been stumping me for a while. i have two reports that i can put on one sheet.
    left report has a list of time, invoice number and amount for that invoice and on the right i have a list of data credit card entries
    i can write a xlookup that takes data from right and check it on the left , but . if there is a gap between the invoices and day, i dont
    know how to write the formula to skip the blank and to manually adjust the size of the query everytime for xlookup takes ages.

    i will attach sample.

    Running business 365 excel. so items like uniquee will work.

    Thanks
    chris.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need to run credit card checks versus database of invoices

    Does the attached help

    I've used two helper columns, M & N with the results in column L to align with your manual results.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Need to run credit card checks versus database of invoices

    Thanks. Seem to work.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,672

    Re: Need to run credit card checks versus database of invoices

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    08-26-2016
    Location
    UK
    MS-Off Ver
    O365
    Posts
    260

    Re: Need to run credit card checks versus database of invoices

    Quote Originally Posted by 1chrisdewet1 View Post
    Thanks. Seem to work.
    Are you sure?
    Take cells I14 and I19, these are both for 220 and for Till 9700.
    Looking for matches in the left table I find 3; cells C17, C21 & C35, all for 220 Till 9700.
    Which to take?

    I only came across this because I was experimenting with a Power Query solution and it threw up 3 possibilities for each of the 220 amounts. So a little more direction perhaps?
    Last edited by p45cal; 03-31-2021 at 05:28 PM.

  6. #6
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Need to run credit card checks versus database of invoices

    Yeah. What i know is that the sequence of time say 17H00 for c/card 220 cant come on the xlookup query before 1700. lets say 3 transactions for the day was 220 . then condition of time in this case 1700 and condition of card number must be takein into account.
    let me attach another sample to show you what i am talking about.

  7. #7
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Need to run credit card checks versus database of invoices

    Quote Originally Posted by p45cal View Post
    Are you sure?
    Take cells I14 and I19, these are both for 220 and for Till 9700.
    Looking for matches in the left table I find 3; cells C17, C21 & C35, all for 220 Till 9700.
    Which to take?

    I only came across this because I was experimenting with a Power Query solution and it threw up 3 possibilities for each of the 220 amounts.
    So a little more direction perhaps?
    i was thinking of adding conditionals as well but not sure how. they put the c/card numbers in sequential order. so lowest 5500 example will be
    early morning and 5678 will be later in the day.

    my aim is to eliminate card fraud. where they would put in a credit card, but have no corresponding invoice amount for the day.
    Keep in mind the template we come up with has to be adapted to 3 different shops' data sets. Meaning hte card number in one shop is above 5500
    and some shops in the low 2200 .
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Need to run credit card checks versus database of invoices

    Both reports are run through power queries already on my side to eliminate the fluff of data-. Its two reports that have delivery charges on it as well. Ideally i would like to run a check on all tills 9700, all cards (with their numbers and values ) appear on the invoice data set, But doing it manually with just my normal looking i can find odds out a few months now. Eg the card of say 5500 that was supposed to be rung up after 5499 at 1756, doesnt exist. so from 1757 to closing that 5500 card at say value of 220 , has no invoice value.

    hope that makes sense. Every time i explain it to my boss he goes glazed in the eyes. The process is time consuming and seeing as we are going to franchise the data
    sets are just going to get bigger and more dense to deal with.
    Hence the fraud to eliminate.

  9. #9
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Need to run credit card checks versus database of invoices

    messing around with the formulas to see if xlookup can be run again if the time value is doubled

    =IF(COUNTIF($Q$27:Q$35;Q27)>1;IFERROR(XLOOKUP(S27;$U$3:$U$145;$A$3:B$145);""))

    Suffice it to say that is not the answer. The first countif check the original xlookup array returned from the card/invoice lookups in array and sees if there is double. then supposeldly has to run it again (eg ignore its first xlookup value and return the next similar value

    But alas im way too new to nest if statements inside of xlookups atm.

  10. #10
    Registered User
    Join Date
    12-17-2020
    Location
    south africa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Need to run credit card checks versus database of invoices

    fun fact. i have run countif on the range cards into the invoicing and it shows multiple entries - some even has 6 versions of the same card on the day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Credit Card Total
    By Shan54321 in forum Excel General
    Replies: 3
    Last Post: 05-26-2019, 02:26 PM
  2. [SOLVED] Credit card type based on card number
    By wlsnoops in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2013, 10:25 AM
  3. Credit Card Payments
    By mick2 in forum Excel General
    Replies: 1
    Last Post: 08-17-2007, 02:48 AM
  4. Time to pay credit card
    By dacius1 in forum Excel General
    Replies: 9
    Last Post: 12-14-2006, 01:04 PM
  5. Credit Card Calculator
    By Juan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2006, 09:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1