+ Reply to Thread
Results 1 to 6 of 6

Formula change to reflex no value in cell when rge is not populated

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    26

    Formula change to reflex no value in cell when rge is not populated

    I have a formula (below) in a cell that displays the name of a high scorer from multible scorers and a vertical range of calculated numbers; =INDEX($D389:$D505,MATCH(MAX(G403:G505),G403:G505,0)).

    When the vertical range has no entries the present formula defaults to the first name on the list of the team members in another vertical range. How can I get it to default as an ‘empty’ cell or a ‘hyphen’ in the cell... So a high scorers name only appears when points are entered.

    Thank You, Craig

  2. #2
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Formula change to reflex no value in cell when rge is not populated

    Try

    =IF(COUNT($G$403:$G$505),INDEX($D389:$D505,MATCH(MAX(G403:G505),G403:G505,0)),"-")
    Marcelo Branco

  3. #3
    Registered User
    Join Date
    07-11-2013
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Formula change to reflex no value in cell when rge is not populated

    Quote Originally Posted by mlcb View Post
    Try

    =IF(COUNT($G$403:$G$505),INDEX($D389:$D505,MATCH(MAX(G403:G505),G403:G505,0)),"-")
    Thank you for responding, but it has failed and returns the same default. I have tried playing with you formula and still no solutions. If you have another idea I would be grateful.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula change to reflex no value in cell when rge is not populated

    Maybe:

    =IF(SUM(G403:G505)=0,"-",INDEX($D389:$D505,MATCH(MAX(G403:G505),G403:G505,0)))

    If you can post an example of your work or something for me to play with, I'll gladly take a crack at it for you.
    Last edited by daffodil11; 09-26-2013 at 05:14 PM.

  5. #5
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Formula change to reflex no value in cell when rge is not populated

    Quote Originally Posted by craigl View Post
    Thank you for responding, but it has failed and returns the same default. I have tried playing with you formula and still no solutions. If you have another idea I would be grateful.
    Could you provide a small data sample and expected result?

  6. #6
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: Formula change to reflex no value in cell when rge is not populated

    There is something strange in your original formula

    =INDEX($D389:$D505,MATCH(MAX(G403:G505),G403:G505,0))

    Shouldn't it be?

    =INDEX($D403:$D505,MATCH(MAX(G403:G505),G403:G505,0))

    Why are you using D389:D505 if the MATCH function is looking for the position of the MAX in range G403:G505?

    Could you, please, clarify?

  7. #7
    Registered User
    Join Date
    07-11-2013
    Location
    Davenport, Iowa
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Formula change to reflex no value in cell when rge is not populated

    Been away for a year now, but wanted you (daffodil11) to know that although your response was greatly appreciated it did not solve the problem, HOWEVER, in your response there was enough direction that I worked it out to be:

    =IF(SUM(G223:G258)>0,INDEX($D209:$D243,MATCH(MAX(G223:G258),G223:G258,0))," ")

    THANKS AGAIN

+ 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. VBA to Confirm Change of Populated Cell Content
    By LEEPRIESTENATOR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-15-2013, 05:30 PM
  2. [SOLVED] Change a cell populated by a dropdown when the value of the source range changes
    By AAbrams in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 04:10 PM
  3. [SOLVED] Change operation of button based on information from populated cell
    By malform in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2010, 07:02 PM
  4. Change populated cell names via macro
    By TJM in forum Excel General
    Replies: 2
    Last Post: 09-12-2006, 10:47 PM
  5. include in formula only if cell is populated?
    By themax16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2005, 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