+ Reply to Thread
Results 1 to 3 of 3

Formula/Macro to extract information of certain cells

  1. #1
    Registered User
    Join Date
    05-23-2022
    Location
    Ireland
    MS-Off Ver
    365
    Posts
    2

    Formula/Macro to extract information of certain cells

    Hello everybody, I'm Bruno, new to the forum.
    I had some basic use of Excel from school (very very basic) and now I find myself using it in my day to day, also at a basic level just to keep an eye on my finances.
    At the moment I have one of my sheets where I have all the income in Column A (green) , all the expenses are in Colum B (red) and in Column C, I use it as "Description" where I write where that money comes from,goes to; for example "Food" , "Phone", etc etc.

    What I would like to know if it's possible, is if I can create a formula/macro in a new Cell, and I want that formula/macro to "Look" in the Column "C", for all the text that says "Food" and then, if it is there, from that same row, extrac the information, but from the Colum "B" that is the number.

    So for example, if in Coulm "B" I know that B2, B8, and B12 (just to randomize) is money I spend on Food, cause I can see in the "Column C" on the same row number that description. So the idea is once this formula is created I select all Column C, but the information displayed in that new cell, would be just the sum of B2, B8 and B12, cause the formula/macro shoud look in Column C all the "Food" and them SUm up those same rows but from Colum B.

    I hope I was a little clear, I'm sorry for the language and communication, neither of them is my strong point.
    Any help will be appreciated.

    Thanks so much.
    Bruno

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: Formula/Macro to extract information of certain cells

    You should be using the SumIf function. Here is a link to the syntax.

    https://www.techonthenet.com/excel/formulas/sumif.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-23-2022
    Location
    Ireland
    MS-Off Ver
    365
    Posts
    2

    Re: Formula/Macro to extract information of certain cells

    Thanks so much! I will investigate that now!

+ 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. Formula to extract information from a table
    By viewotst in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2021, 07:44 AM
  2. Macro does not retain login information to extract web page
    By Armored Wing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2018, 09:17 PM
  3. Need a Formula to extract information from one sheet to another
    By slock92 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-03-2016, 02:47 PM
  4. Replies: 5
    Last Post: 06-26-2016, 12:52 AM
  5. Replies: 0
    Last Post: 10-15-2015, 09:53 AM
  6. Macro to Extract Information
    By brazilianch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2015, 09:34 PM
  7. extract relevent data information in other cells
    By stevekirk in forum Excel General
    Replies: 4
    Last Post: 09-12-2006, 11:22 AM

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