+ Reply to Thread
Results 1 to 10 of 10

Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    I have a excel file where I need "error" in cells Q34 and Q42 is cells C3 and Q2 is left blank.


    Currenty the formulae which I have in cell "Q34" is
    Please Login or Register  to view this content.
    And the formulae in "Q42" is
    Please Login or Register  to view this content.
    Currently if Count of Range "B11:B31" does not match count of "P11:P31" the it shows error in cells "Q34" and "Q42"

    Please help me anyone. thank You.

    I have attached the sample workbook
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    What is the question, your formula in O33 is not counting B11:B11

    Your formula in O33 is "=COUNT($O$11:$O$31)" not column B.
    Should it not be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    hey davesexcel,

    thank you.

    Yeah. Currently if count of "o11:o31" does not equal to count of "P11:P31" then it shows error in cells Q34 and Q42

    So along with this , i wanted it to show error in cells Q34 and Q42 if cells C3 and Q2 is left blank.

    Sorry for the trouble

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,124

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Please post a sheet WITHOUT protection.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Possibly,

    Here is something if C3=""
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Hey this is the sheet.
    Sorry for the mismanagement
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Hey daveexcel,

    Can we also put cell Q2 in the formulae? So whenever C3 and Q2 is left blank then it shows error.

    Also what forumlae do i put in Q42?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,124

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Q34:
    =if(and(c3<>"",q2<>"",p33=o33),sum(q11:q31),"error")

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,124

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Q42:
    =if(and(c3<>"",q2<>"",P33=O33),SUM(Q35,Q34)-SUM(Q38:Q40),"ERROR")

  10. #10
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: Show "error" in cells Q34 and Q42 if C3,Q2 is left blank

    Hey Glenn . This worked for me. Thank you so much

+ 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 cells are empty in a row then show "Error"
    By anilanilpatni in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-30-2017, 04:52 AM
  2. VBA Updates Pivot Table by cell contents, i want to show "blank" instead of "all"
    By mattinwpg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2017, 10:58 PM
  3. Replies: 35
    Last Post: 01-13-2016, 02:16 AM
  4. [SOLVED] Keeping particular cell blank if the related cells show "0" or "blank"
    By Anuru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2014, 05:30 AM
  5. [SOLVED] Trying to Use ("") to Result in #VALUE Error Cells turning Blank
    By jordan1214 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-23-2013, 01:39 AM
  6. Replies: 9
    Last Post: 11-06-2012, 08:59 AM
  7. Replies: 5
    Last Post: 06-26-2006, 09:23 PM

Tags for this Thread

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