+ Reply to Thread
Results 1 to 20 of 20

[SOLVED] How to Get Blank as result

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Lightbulb [SOLVED] How to Get Blank as result

    Hi Guy,

    I am using formula "SUMIFS" to produce certain information as a result. However i just notice there is 1 data of which formula read error and project the wrong result due to data is blank.

    Is there any formula i need to adjust to get Blank as result ?

    Please share some knowledge of it. Attached together sample for easy understanding of my request

    Thanks
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    LEN($B$3) =? or =< or something. Logical_test required

  3. #3
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Re: How to Get Blank as result

    Sorry I didn't get it,

    I did try the logical test you suggest, but still error

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    IF(logical_test,A,B)

    if logical_test = true , display A, pass over (don't check) B
    if logical_test = false, display B, pass over (don't check) A

    if you delete or change your data , you change also true to false or false to true. It depends of operator (=,<>,=<,=>) in your IF function

    correct logical_test is required.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    IF function looks like: IF(logical_test,A,B) Logical_test looks like: something is = or < or > or... 0 or 1 or "any text"
    In your file you lost LEN($B$3)=number (how many characters in B3)

    i.e. IF ( LEN($B$3)=5, display %, else display "blank")
    Last edited by sandy666; 03-03-2015 at 11:06 PM.

  6. #6
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Re: How to Get Blank as result

    or get it.

    The B3 is formula to count month.

    How about just ignore/delete the B3 data

    just use this

    =SUMIFS(Test!$C$3:$C$500,Test!$A$3:$A$500,">="&$B$1,Test!$A$3:$A$500,"<="&$B$2,Test!$B$3:$B$500,A8)

    i still get 0.00% as result.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    I see only SUMPRODUCT function in your second file

    here is code from first file

    =IF(LEN($B$3),SUMIFS(Test!$C$3:$C$500,Test!$A$3:$A$500,">="&$B$1,Test!$A$3:$A$500,"<="&$B$2,Test!$B$3:$B$500,A9),"")

    How you want to show second argument (blank) if logical_test is always TRUE?

    edit:
    =IF(LEN($B$3)<>1,SUMIFS(Test!$C$3:$C$500,Test!$A$3:$A$500,">="&$B$1,Test!$A$3:$A$500,"<="&$B$2,Test!$B$3:$B$500,A9),"") and it will show you "nothing"
    Last edited by sandy666; 03-03-2015 at 11:30 PM.

  8. #8
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Re: How to Get Blank as result

    hi rino,

    So i need to add another formula to read. Good idea

  9. #9
    Registered User
    Join Date
    11-07-2013
    Location
    Montreal, Qc, Canada
    MS-Off Ver
    Office 365
    Posts
    19

    Re: How to Get Blank as result

    I change your example by adding a new column
    if found the row that match the condition, and I replace your formula, in the new formula I verify if the value is blank.

  10. #10
    Registered User
    Join Date
    11-07-2013
    Location
    Montreal, Qc, Canada
    MS-Off Ver
    Office 365
    Posts
    19

    Re: How to Get Blank as result

    I give a bad file, here the good one

  11. #11
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Re: How to Get Blank as result

    Yes, that is the issue.
    The logical test is always TRUE. That is why the result appeared as number "0" instead.

    To confuse.

    Is there any formula function i should use instead "SUMPRODUCT" function ?

    ______________________________

    Rino,
    Is still the same result as mine

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    Every formula has the same mistake. No logical_test.

    =IF(LEN($B$3),SUMIFS(Test!$C$3:$C$500,Test!$A$3:$A$500,">="&$B$1,Test!$A$3:$A$500,"<="&$B$2,Test!$B$3:$B$500,A9),"")

    IF(raining=yes, i will stay at home, else I will go for a walk)

    checkin'... I see sun so.... I am going for a walk

    You need to define condition when your formula should show % or "blank" becaue now condition is always true.

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: How to Get Blank as result

    Try this approach instead.

    1st create a small table like this...
    L
    M
    2
    0
    1
    3
    0.8
    2
    4
    0.84
    3
    5
    0.89
    4
    6
    0.94
    5


    Then use this formula...
    =IF(OR(D8="",D8=0),"",VLOOKUP(N2,$L$2:$M$6,2,1)*$D$6)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    FDibbins, are you sure?

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: How to Get Blank as result

    Quote Originally Posted by sandy666 View Post
    FDibbins, are you sure?
    try it and see

  16. #16
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Re: How to Get Blank as result

    guys,
    like i said, just ignore the B3 data

    this is update excel. any formula to get Blank as result ?
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Microsoft Office Standard 2016 (Windows 10 Pro SOE Version 1.5 April 2021)
    Posts
    101

    Re: How to Get Blank as result

    I like this forum, as we share idea and understand new thing.

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    Put into D8

    =IF(SUMIFS(Test!$C$3:$C$500,Test!$A$3:$A$500,">="&$B$1,Test!$A$3:$A$500,"<="&$B$2,Test!$B$3:$B$500,A8)<>0,SUMIFS(Test!$C$3:$C$500,Test!$A$3:$A$500,">="&$B$1,Test!$A$3:$A$500,"<="&$B$2,Test!$B$3:$B$500,A8),"")
    I made assumption about SUMIF<>0 show something else show nothing

  19. #19
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: How to Get Blank as result

    Try this one.....


    regards
    Attached Files Attached Files

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Get Blank as result

    Ups I got big lag from the forum. Sorry FDibbins

+ 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. Code for VBA VLookup result blank if column index number is blank
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2014, 05:55 PM
  2. [SOLVED]Formula producing wrong result
    By tobu56 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 10-26-2013, 08:59 PM
  3. Replies: 2
    Last Post: 10-18-2013, 11:18 AM
  4. Replies: 3
    Last Post: 01-04-2012, 02:19 PM
  5. [SOLVED] Help with creating multiple text files from query result.
    By shere in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-09-2011, 02:46 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