+ Reply to Thread
Results 1 to 9 of 9

If statement assistance!!

  1. #1
    Registered User
    Join Date
    11-22-2017
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    4

    If statement assistance!!

    Hello,
    I am working on an invoice tracking sheet. My main point of difficulty is that I am trying to reference a multiple cells and return one specific outcome. Here are the details:

    I have a number of expenditure groups (ie: catering, travel, equipment). I would like to track multiple invoices based on their invoice status (received, pending, paid).

    How do I create a formula that looks at the invoice status for multiple invoices in similar expenditure groups and return a text value?

    for example: I have 3 catering invoices where 2 are paid and 1 is still pending. I would like to return in the cell "Invoice Pending".

    I thought of giving each invoice status a value. so for received=1, pending =2 paid =3. that way i would always reference the lowest value, but return the text value associated with the invoice status.

    I am having a difficult time building a formula that can do this.

    Any suggestions?

  2. #2
    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,460

    Re: If statement assistance!!

    Welcome to the forum!

    Will you please attach a sample Excel workbook? Nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Registered User
    Join Date
    11-22-2017
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    4

    Re: If statement assistance!!

    I have attached the workbook that I have been using to help with this situation
    Attached Files Attached Files

  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,460

    Re: If statement assistance!!

    Thanks. Now please explain what we are looking at, in particular where we will find your expected outcomes.

  5. #5
    Registered User
    Join Date
    11-22-2017
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    4

    Re: If statement assistance!!

    All expenditures are tracked on tab 2 TMB expenditure tracking. This will list all of the information from the transaction (type, price, date, invoice status, etc.) Each expenditure will be given a status to track. I would like to collect all the invoices that are grouped by a Expenditure Group (Catering, Mail, Travel, Supplies & Equipment, Vendor & Consulting - Within List Data tab) and track their invoice status (Invoice Received, Invoice Approved, Invoice sent to Jennifer, Invoice sent to IFIS, Invoice Paid - Within List Data Tab).

    My goal is to list 1 invoice status returned on the course overview page under Invoice Status based on the combined statuses of each invoice. For example all of the invoices associated in the catering group have different status, 2 - invoice paid and 1 invoice approved. I would like to return invoice approved because it has yet to finish the cycle

  6. #6
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: If statement assistance!!

    To be honest ryan, I find it hard to follow exactly what you're trying to accomplish here.

    Although you provided a sample, but you don't really have a 'desired' solution and how to derive it. So it's difficult to follow what you're explaining and the desired solution that you'd like to achieve.

  7. #7
    Registered User
    Join Date
    05-27-2013
    Location
    BEDS
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: If statement assistance!!

    Hi Ryan,

    I am trying to understand what you are trying to achieve on here, but If I understand it as follows: (I'll use catering as the example)

    1) You are looking at catering for Quarter 1
    2) If it says anything other than Invoice-Paid then it will be Invoice Pending?

    I would do a 4 columns for each quarter representing each service.
    Use a countifs statement to total the amount of invoice that does not equal "Invoice Approved". Do an If statement if that is more than >0 then to "Invoice Pending", otherwise "Invoice for Catering Service Paid for Q1".

    Hope this helps.

  8. #8
    Registered User
    Join Date
    11-22-2017
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    4

    Re: If statement assistance!!

    Hi,

    i get a number of invoices, that can be categorized into different groups (catering, travel, etc.) those invoices come from different vendors. In my tracking sheet I give each invoice a status (received, pending, paid, etc)

    I would like to show the status for the "group". Meaning, based on the invoices received for catering, if all invoices have a status of paid, then in the first tab for catering it would come back invoice paid.

    But if 1 of the invoices comes back with different statuses, then I would like it to show the lowest value which would be invoice received. Invoice paid would be the desired (highest) value as the invoice has now been dealt with.

    This will provide my manager with a high level picture that we still need to look at our invoices for catering because 1 is still outstanding or not paid.

    I would like this for multiple groups for different course sessions.

    hopefully this clears it up.

  9. #9
    Registered User
    Join Date
    05-27-2013
    Location
    BEDS
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: If statement assistance!!

    Hi

    So I would do something like this as an example::

    =IF(COUNTIFS($A$5:$A$1000,"Catering",$B$5:$B$1000,"Vendor",$C$5:$C$1000<>"Paid")>=1,"Invoice Pending",Invoice Paid")

    So if there is a count of more than or equal to 1 where it doesn't have "Paid" then it will be Invoice Pending.

    Where you have your fixed formula data range (A-C as the example is above) - go to wherever your tab/cells refer to your Catergory/Vendor/Invoice Status are.

    Hope this helps.
    Last edited by pasqui83; 11-23-2017 at 05:37 PM. Reason: Made it easier to understand.... hopefully

+ 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] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  2. [SOLVED] Need assistance with if statement
    By RinorM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2014, 07:18 AM
  3. Need assistance with if statement
    By RinorM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2014, 07:58 AM
  4. If statement assistance
    By floricita in forum Excel General
    Replies: 2
    Last Post: 08-15-2014, 07:10 AM
  5. [SOLVED] Assistance with If statement
    By capson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2014, 02:28 PM
  6. [SOLVED] IF Statement Assistance??
    By PERE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-19-2013, 09:11 PM
  7. IF Statement Assistance
    By gasguzzler in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-11-2009, 04: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