+ Reply to Thread
Results 1 to 3 of 3

Problems with IF statement when adding invoice values

  1. #1
    Registered User
    Join Date
    03-09-2007
    Posts
    51

    Problems with IF statement when adding invoice values

    Can anyone advise me on my problem? I'm looking to add invoice values together from column H but only if the corresponding cells in column E state a certain Nominal code, for instance '4021'.

    I'm guessing it's an 'IF' statement but can't seem to get it to work.

    Any advice would be much appreciated.

    Thanks in advance.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Problems with IF statement when adding invoice values

    Hi

    It's a SUMIF:

    =SUMIF(E:E,4021,H:H)

    Note that the criteria above can be a cell reference (eg A1) holding the criteria value. The formula cannot go into either column E or H as I have used whole column references (and this would create a circular reference) however you can limit the ranges to apply to eg by:

    =SUMIF(E2:E100,4021,H2:H100)

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    03-09-2007
    Posts
    51

    Re: Problems with IF statement when adding invoice values

    Fantastic! works brilliant, thanks for your help, I wasn't using the sumif function.

+ Reply to Thread

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