+ Reply to Thread
Results 1 to 2 of 2

Reference Cell Content

  1. #1
    Registered User
    Join Date
    12-14-2020
    Location
    Santa Cruz, Bolivia
    MS-Off Ver
    Microsoft 365
    Posts
    1

    Reference Cell Content

    Hello, I want to create a table were the user only has to enter data, and only specific columns from the table and not to enter all the fields all the time. So, what the user basically does is enter ID, Cost, Quantity and payed amount. Based on those columns, TOTAL and DUE, could be calculated by formula. Since every ID number is an operation, then a lot of ID numbers can be entered in a period of time and that is why it is important the user doesn't need to look for the due amount or the payed amount. So this is the table that I want to generate. (I'm also attaching a table to the thread but I am trying to display an excel table to illustrate my point)



    A B C D E F
    1 ID unit cost quantity total payed Due
    2 1 1 1 1 0.5 0.5
    3 2 1 10 10 10 0
    4 1 1 1 1 0.5 ******


    So, I want to be able to create a formula in the F column (Due amounts), where I'd create an IF statement to see if an ID number in column A is being repeated, if True, then I need to calculate the row where the ID repetition happens and substract the payed amount in the last E column (Payed amount), from the matching Due Column (F) where the Id previously happened



    In this case it would be, =IF A4 Matches any row in the same column (It matches cell A2) then substract that F cell (that would be the one in F2) of E4, and then you get 0. That way the user doesn't have to worry about looking for due amounts or payed amounts and he only enters what he gets in invoices provided

    I'm attaching a sample file, so far I can't reference a cell in a given row and I was trying to combine the MATCH function with an IF statement to verify the ID number is being repeated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Reference Cell Content

    batmanadk,

    The only "criteria" in your sample is the ID in Col A.
    Convert D2 to formula =[@[unit cost]]*[@quantity] and copy down so each row calculates the order cost automatically.
    Then put this in F2, and copy down.

    =SUMIF(A$2:A2,A2,D$2:D2)-SUMIF(A$2:A2,A2,E$2:E2)
    (Adds up all the amounts invoiced to the ID in that row, and deducts what they have paid already. Balance goes in Col F.)

    Test it by "paying" 1 in E4. Balance drops to 0.5 outstanding.

    Add new order for same person, but pay 0.5 more than value in Col D, and Col F will become blank, as you have paid the arrears as well.

    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 12-14-2020 at 06:28 AM.

+ 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. VBA to extract URL content from a reference cell
    By Rozgar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2020, 06:46 AM
  2. [SOLVED] Use cell content in reference to another sheet
    By k1989l in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-09-2016, 09:29 AM
  3. Delete cell content if find a space in relative cell reference
    By kent97 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-05-2015, 12:43 AM
  4. Replies: 4
    Last Post: 10-29-2014, 05:10 AM
  5. Reference cell formats + content
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 4
    Last Post: 12-23-2005, 10:50 PM
  6. Reference Cell Content
    By Sloth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2005, 05:10 PM
  7. Reference Cell content in formula
    By murphyz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2005, 12:06 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