+ Reply to Thread
Results 1 to 10 of 10

Need formula to fill X else 0

  1. #1
    Registered User
    Join Date
    11-20-2019
    Location
    New Delhi
    MS-Off Ver
    Excel 2016
    Posts
    9

    Need formula to fill X else 0

    Good Day All. I am hoping for some help

    I have a file that need to be filled with X, searching for the formula how to fill it according to the requirement.

    Please find the attachment, For the good understanding i have provided with possible examples including with pictorial one's.

    Any help would be greatly appreciated.

    Awaiting for the help
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need formula to fill X else 0

    Hello and welcome to the forum.

    Try this in B2:

    =IF(COUNTIFS(Data!$A:$A,B$1,Data!$B:$B,$A2),"X","")

    Drag to the right and down.

    If you want 0 instead of blank, replace "" with 0.

  3. #3
    Registered User
    Join Date
    11-20-2019
    Location
    New Delhi
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Need formula to fill X else 0

    Thanks for your quick response and greetings,

    Was very happy to see the response at light speed.

    Can you please help me to fix this below error:

    Attachment 650671

    My excel reads comma seperator value as ; instead of :

    So i tried even that but still issue persists

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need formula to fill X else 0

    The attachment didn't work.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Registered User
    Join Date
    11-20-2019
    Location
    New Delhi
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Need formula to fill X else 0

    Please find the attachment of the error, Thanks for your help once again.
    Attached Images Attached Images
    Last edited by AliGW; 11-21-2019 at 02:00 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,007

    Re: Need formula to fill X else 0

    Do you have a European locale on your PC?

    Try this:

    =IF(COUNTIFS(Data!$A:$A;B$1;Data!$B:$B;$A2);"X";"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    11-20-2019
    Location
    New Delhi
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Need formula to fill X else 0

    Thanks a lot for the formula it really worked.

    There is a new column added along with the new case (case-3), Could you please help a formula for this case as well

    Please find the attachment

    Awaiting for help !
    Attached Files Attached Files
    Last edited by AliGW; 11-21-2019 at 06:42 AM. Reason: Please don't quote unnecessarily!

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need formula to fill X else 0

    Please don't send personal messages. We see when new posts are added to threads that we contribute too.

    You can use this in C2:

    =IF(COUNTIFS(Data!$A:$A,C$1,Data!$B:$B,$A2,Data!$C:$C,$B2),"X","")

    or if your regional settings require ; instead, you can use this:

    =IF(COUNTIFS(Data!$A:$A;C$1;Data!$B:$B;$A2;Data!$C:$C;$B2);"X";"")

  9. #9
    Registered User
    Join Date
    11-20-2019
    Location
    New Delhi
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Need formula to fill X else 0

    Thank you both for your help
    Have understood the forum rules as well..
    Wish you a good day ahead.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need formula to fill X else 0

    You're welcome. Happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Skip x cells and fill (Fill/create weekly average from 7 days and fill down)
    By tunafishes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2016, 03:43 AM
  2. To fill entire row with fill colour of a particular cell with a formula
    By shailendra chari in forum Hello..Introduce yourself
    Replies: 3
    Last Post: 11-30-2013, 11:18 AM
  3. Auto fill decimal sequence using custom fill or formula
    By 8cats in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2013, 08:53 AM
  4. Formula to Automatically Fill Blank With Next fill cell's data?
    By VMoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 05:11 PM
  5. [SOLVED] Macro to Fill with Formula, but Hide Formula to User
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-21-2012, 10:44 AM
  6. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  7. Replies: 1
    Last Post: 07-13-2007, 10:59 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