+ Reply to Thread
Results 1 to 8 of 8

Communicating between two excell columns using functions ( no macros) ?

  1. #1
    Registered User
    Join Date
    06-01-2012
    Location
    Ogden, Utah
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Communicating between two excell columns using functions ( no macros) ?

    Comm2Colum.jpgComm2Colum.jpgSo I have two columns of data. Column D changes from a letter to a blank depending on the user inputs of column B. Column E has numbers designated to the letters that are present in Column D. My problem is as follows:

    - I need to create a function that counts how many cells in Column E still have a adjacent letter in Column D after the user is done with the inputs in Column B.

    SO BASICALLY HOW DO I GET THESE TWO COLUMNS TO COMMUNICATE?
    TWO DAYS IS FAR TOO LONG FOR THIS PROJECT.

    So far what I tried doing was to put a count function inside an if function to count the number of cells still having a letter in Column D(condition for if function). However, escel is not able to do this because the if function goes to false once it hits the first blank. thus skipping the count and making the result a 0.

    PLEASE HELP!

    Attached is an example of what I am talking about.

    So the result should reflect how many times 20 repeats iff their correspoing D-cells have a character and not a blank. ( Result = 2)
    Last edited by diego2291; 06-01-2012 at 04:14 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Communicating between two excell columns using functions ( no macros) ?

    diego2291,

    Welcome to the forum!
    Using your example image, give this a try (good for all versions of Excel):
    =SUMPRODUCT((D2:D6<>"")*(E2:E6=20))

    For Excel 2007 and higher:
    =COUNTIFS(D2:D6,"<>",E2:E6,20)
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-01-2012
    Location
    Ogden, Utah
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Communicating between two excell columns using functions ( no macros) ?

    Hey tigeravatar,

    thanks for the welcoming. I will be posting a small bio later on today but right now I am trying to solve this problem.

    I have tried using COUNTIF/COUNTIFS before. However, COUNTIFS(D2:D6,"<>") is not skipping the blanks. It counts the blanks and puts it in the result. Therefore giving me a bad result. Any more ideas? =)

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Communicating between two excell columns using functions ( no macros) ?

    Sorry, forgot an asterisk:
    =COUNTIFS(D2:D6,"<>*",E2:E6,20)

  5. #5
    Registered User
    Join Date
    06-01-2012
    Location
    Ogden, Utah
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Communicating between two excell columns using functions ( no macros) ?

    Thanks for the help. I had to change the "<>" to "=" , which gave the right answer. Can you please explain to me the function of the asterik "*" in the line of code you wrote?

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Communicating between two excell columns using functions ( no macros) ?

    It's a wildcard character, to test if a cell isn't blank.

  7. #7
    Registered User
    Join Date
    06-01-2012
    Location
    Ogden, Utah
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Communicating between two excell columns using functions ( no macros) ?

    Oh okay thanks. I just never used this character before. I have something else to ask you. I am currently working on a project involving VB for Excel 2007. Now I only have two months to finsh this project and my knowledge of Visual Baisc is well....very basic. Do you know of a good book that might be able to expand on my knowledge that wont be too time consuming?

  8. #8
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Communicating between two excell columns using functions ( no macros) ?

    Unfortunately, I'm self-taught, so I can't really point you anywhere specific. This thread has many good links though:
    http://www.excelforum.com/excel-prog...materials.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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