Forum Discussion

Dimi237's avatar
Dimi237
Copper Contributor
Jun 26, 2023
Solved

Automate with excel and a database.

Hi Guys,

 

I am currently on a project and I am kind of stuck.

Basically I am trying to figure out how I can filter an excel table using a database in the background.

 

Let's say I have a bank statement and I am trying to figure out what I have spend in food,

fuel and savings.  i am trying to conceive something that can identify all the fuel stations by their name and automatically save them as fuel. Same with food and savings. the system will identify  the name of the supermarkets and the name of my savings accounts.

See below a simplify version of what I have done manually.

 

You can see payments to my friends Elaine ad Mark, Payment of my taxes and payments for a car. 

Currently I use the formula below to make the system understand that payments to Elaine  and mark should be classified as friend. 

I am trying to link this to a database and to the cells so that i can just copy  the payments from the bank statement and  automatically classify the expenses to their different post . All my friends will be there, my taxes, my food , and so on...

 

Is it possible to do this on excel?

 

Can anyone assist or advise??

 

Thanks for taking the time to read to the end.

 

Dimi

 

 

12 Replies

  • Dimi237 

    =IF(AND(D$1="Friend",OR(ISNUMBER(SEARCH({"Elaine","Marc","Joe"},$B2)))),$C2,IF(AND(D$1="Taxes",ISNUMBER(SEARCH("Revenue",$B2))),$C2,IF(AND(D$1="Car",ISNUMBER(SEARCH("East Coas",$B2))),$C2,IF(AND(D$1="Food",OR(ISNUMBER(SEARCH({"Milk","Bread","Coffee"},$B2)))),$C2,""))))

     

    An alternative could be this formula. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021. The formula is in cell D2 and filled across range D2:G9.

    • Dimi237's avatar
      Dimi237
      Copper Contributor
      Thanks for your swift response.

      I tried it and it definitely help.

      However it's might be a bit much if i have 100 different variables. That's why i was thinking that having a database on the side could make things more manageable.


      Any idea how i can do that too?

      Regards,
      • peiyezhu's avatar
        peiyezhu
        Bronze Contributor
        much if i have 100 different variables?
        What did you mean 100 different variables.
        Can you share your workbook so that we are able to understand your question intuitatively?

Resources