+ Reply to Thread
Results 1 to 6 of 6

Adding together a bunch of IFNUMBER

  1. #1
    Registered User
    Join Date
    07-23-2023
    Location
    Elgin, Scotland
    MS-Off Ver
    Office 16
    Posts
    3

    Adding together a bunch of IFNUMBER

    Hi!

    I am very new to excel, and I think way over my head here. lol

    In the attached file I am trying to add together a bunch of IFNUMBER into one total. V6 is where the formula currently is, its not working, and I don't know what I am doing wrong. Please help.

    =IF(ISNUMBER(G6),G6*G1,IF(ISNUMBER(H6),H6*H1,IF(ISNUMBER(I6),I6*I1,IF(ISNUMBER(J6),J6*J1,IF(ISNUMBER(K6),K6*K1,IF(ISNUMBER(L6),L6*L1,IF(ISNUMBER(M6),M6*M1,IF(ISNUMBER(N6),N6*N1,IF(ISNUMBER(O6),O6*O1,IF(ISNUMBER(P6),P6*P1,IF(ISNUMBER(Q6),Q6*Q1,IF(ISNUMBER(R6),R6*R1,IF(ISNUMBER(S6),S6*S1,"")))))))))))))

    Thanks!
    Attached Files Attached Files
    Last edited by PushkaLou; 07-23-2023 at 10:27 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Adding together a bunch of IFNUMBER

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-23-2023
    Location
    Elgin, Scotland
    MS-Off Ver
    Office 16
    Posts
    3

    Re: Adding together a bunch of IFNUMBER

    Thank you!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adding together a bunch of IFNUMBER

    You don't explain what you want your formula to do, so it's hard to say how to correct it.

    However, it appears from context that for each product, you want to multiply the quantity times the unit cost to get a total cost for that product, and then sum the total costs for all the products. The SUMPRODUCT function is perfect for this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I'll take a moment to explain why your formula doesn't work. IF has three parts: The condition, the result if the condition is TRUE, and the result if the condition is FALSE. You have nested many IF functions together, so as soon as one of the conditions is TRUE it returns the TRUE result and finishes. There is nothing in your formula to add the results. For example, if G6 is a number, the formula returns G6*G1 and then it's done.

    You don't have to worry about the cells that are blank. When Excel does arithmetic, it will treat a blank cell as 0.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Adding together a bunch of IFNUMBER

    Glad to help & thanks for the feedback.

  6. #6
    Registered User
    Join Date
    07-23-2023
    Location
    Elgin, Scotland
    MS-Off Ver
    Office 16
    Posts
    3

    Re: Adding together a bunch of IFNUMBER

    Thank you very much for the lesson! It helps to get it for next time!

+ 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. use IFNUMBER function in a sum, but only use values not text
    By RINGLEADER in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2019, 08:01 AM
  2. Possible IFNUMBER/ISNUMBER Formula?
    By elzakko in forum Excel General
    Replies: 5
    Last Post: 02-13-2019, 11:40 AM
  3. [SOLVED] Two Conditions within =IF(IFNUMBER(FIND
    By adrenom in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-21-2016, 10:59 AM
  4. IFNUMBER automatically update
    By moldo89 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-12-2013, 02:26 PM
  5. [SOLVED] Staff Schedule (Match, Index, IFNUMBER, ) I think i've over complicated it?
    By Motoxboi26 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-04-2013, 11:01 PM
  6. [SOLVED] IFNUMBER - Return 'Yes' or 'No' rather than 'True' or 'False'?
    By RuthieBuxton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2013, 12:10 PM
  7. [SOLVED] LARGE function with an IFNUMBER
    By EXCEL PFMT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-08-2012, 11:53 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