+ Reply to Thread
Results 1 to 5 of 5

Trying to produce blanks cells for some alpha numeric charatcters and not others

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Trying to produce blanks cells for some alpha numeric charatcters and not others

    I have a large spread sheet. The values in the column "O" I am referencing are M, T, numbers, and blank cells. I want to keep the T and number values in Column D, but want the M to be a blank cell and the blank cell to remain blank. The following formula does well except it is assigning both T and M as a blank cell.

    =IF(COUNTIFS($o$4:$o$34,">=0",$n$4:$n$34,$A$1,$k$4:$k$34,$A4)>=1,SUMIFS($o$4:$o$34,$n$4:$n$34,$A$1,$k$4:$k$34,$A4),"")

    Thanks in advance for any help that you can provide!
    Attached Files Attached Files

  2. #2
    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
    52,938

    Re: Trying to produce blanks cells for some alpha numeric charatcters and not others

    You are getting 0 in the countifs() part because you have text in O28 (for 1944)
    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

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Trying to produce blanks cells for some alpha numeric charatcters and not others

    Quote Originally Posted by FDibbins View Post
    You are getting 0 in the countifs() part because you have text in O28 (for 1944)
    I tried an Index and Match function too, but I was getting 0's for blank cells and that messed up my count when I wanted to count dry Easters. All I want to do is retrieve Easter climate data from another work sheet and display it in another work sheet, so I can run some statistics on it. It is a huge work sheet with all sorts of holidays in it.

  4. #4
    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
    52,938

    Re: Trying to produce blanks cells for some alpha numeric charatcters and not others

    OK see if you can adapt this ARRAY formula to suite your needs....
    =INDEX($O$4:$O$34,MATCH($A4&$A$1,$K$4:$K$34&$N$4:$N$34,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Note: If you have a large amount of data, ARRAY formulas could slow things down. If this is the case, we can modify that by using a helper in P2, copied down....
    =K4&N4
    Then that formula becomes a regular formula like this....
    =INDEX($O$4:$O$34,MATCH($A4&$A$1,$P$4:$P$34,0))

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Trying to produce blanks cells for some alpha numeric charatcters and not others

    Quote Originally Posted by FDibbins View Post
    OK see if you can adapt this ARRAY formula to suite your needs....
    =INDEX($O$4:$O$34,MATCH($A4&$A$1,$K$4:$K$34&$N$4:$N$34,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Note: If you have a large amount of data, ARRAY formulas could slow things down. If this is the case, we can modify that by using a helper in P2, copied down....
    =K4&N4
    Then that formula becomes a regular formula like this....
    =INDEX($O$4:$O$34,MATCH($A4&$A$1,$P$4:$P$34,0))
    This works great; however, the blank cells are becoming 0s and that will end up messing up my count of Easters without rain.

+ 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. Sum cells that contain alpha and numeric
    By Hammer1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2011, 09:41 PM
  2. Replies: 2
    Last Post: 06-18-2010, 05:10 PM
  3. using if then functrion with alpha numeric cells
    By JEllison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2007, 03:43 PM
  4. [SOLVED] Sorting Cells With Alpha Numeric Values
    By 69-er in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-31-2006, 01:28 PM
  5. convert cells containing alpha to numeric
    By ezu in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-09-2005, 06:06 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