Results 1 to 3 of 3

Summing totals through IF function...

Threaded View

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    Bay Area
    Posts
    4

    Summing totals through IF function...

    Ok, I'll try to explain this well, but I am notorious for explaining things terribly.

    I am working on this spreadsheet for work. In column E is the order status and in column I is the total expense (factoring in cost and qty). So I has a formula like G2*F2, for example.

    What I am trying to do is have the formula look at the order statuses in column E and total the dollar amounts attached to the status of those orders and sum them up. So, for example, if I wanted to see everything "On Hold" I'd enter this formula I am trying to figure out, and it would should me the sum for everything on hold.

    Right now, I've been working with these formulas, but noticed there would be a problem (most likely) with Excel not looking at each occurence of the word "On Hold"; it would more than likely just stop at the first one:

    =IF(E2:E51="On Hold,I2,"0") or =IF(E2:E51="On Hold,I2:I51,"0")

    and

    =IF(VLOOKUP("On Hold",E2:E51,1,FALSE)="On Hold",I2,"0")

    But neither work and usually get #VALUE!

    I found this does work:

    =IF(E2="On Hold",I2,"0"), but then I'd have to do:

    =IF(E2="On Hold",I2,"0")+IF(E3="On Hold",I3,"0")+etc.....

    But the end result would be a function for only one cell that contains like over a hundred calculations. I'd be time consuming and a pain to maintain.

    Any other suggestions?

    Thanks again for the help!

    Uro
    Last edited by urobolus; 11-10-2008 at 02:20 PM.

Thread Information

Users Browsing this Thread

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

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