+ Reply to Thread
Results 1 to 9 of 9

identifying a cell in a range from its value

Hybrid View

  1. #1
    Registered User
    Join Date
    04-18-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    6

    identifying a cell in a range from its value

    Hello everyone!

    I am not sure how to do the following on Excel 2007:
    - I am considering 2 series of consecutive cells organised in 2 lines (same number of cells, one a few lines above the other).
    these lines are comprised of rankings for a product A (top line) and a product B (bottom line). The columns are the months of the year.
    In any given column of the range we're considering,, in the cells where the column crosses product A's line and product B's line, there can be either the number zero, or nothing, or a rank that is unique for both series : there is only one number 4, for instance, in all the cells of product A's series and product B's series; and the same for all other number.

    What I'd like to do is the following: starting from a given rank (say 5)that I know is present somewhere in a cell of one of the two series, I'd like a formula that would examine both series, find the cell where the content is equal to the chosen rank (5), and identifies it.i.e. gives L15C63 as the result, being the absolute designation of the cell of which the value equals 5.

    I hope I'm being clear. Can you help me? It's quite urgent.

    Thanks!
    Last edited by megame; 04-19-2010 at 07:23 AM. Reason: Solved

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: identifying a cell in a range from its value

    Perhaps a dummy workbook would help. I confess that I can't quite visualize what it is you're trying to do.

  3. #3
    Registered User
    Join Date
    04-18-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: identifying a cell in a range from its value

    OK, I'm preparing a workbook and will be done in 5 mins, bear with me!
    Thanks

  4. #4
    Registered User
    Join Date
    04-18-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: identifying a cell in a range from its value

    Here it is:
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: identifying a cell in a range from its value

    I think it's fairly apparent to you by now that the setup isn't ideal from an analysis perspective... given your setup you would (IMO) be better off returning the address as a co-ordinate, eg:

    D23:
    =MIN(IF(($A$10:$A$14="RANK")*($B$10:$AZ$14=$C23);ROW($B$10:$B$14)+(COLUMN($B$10:$AZ$10)/100000)))
    confirmed with CTRL + SHIFT + ENTER
    copied down
    (adjust ranges to suit)

    The above would for ex. return 10.00002, 14.00002, 14.00003, 10.0004 etc...

    You can use the above values in an INDEX call to retrieve other values based on this "locator" given the Integer represents the ROW and the decimal remainder the column - eg:

    =INDEX($6:$6;ROUND(MOD($D23;1)*100000;0))

    would return the associated date

    =INDEX($A:$A;INT($D23)-3)

    would return the associated product

    =INDEX($1:$14;INT($D23)-1;ROUND(MOD($D23;1)*100000;0))

    would return the cumulative for the product etc...

    (note the final INDEX uses both row_num and col_num parameters whereas the former do not given they are referencing vectors (ie single row, single column range) rather than matrices)


    Hopefully the above gives you sufficient info. to extend this further per your own requirements.

  6. #6
    Registered User
    Join Date
    04-18-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: identifying a cell in a range from its value

    Thanks a lot, and congrats for a clever solution I would never have thought of. Carrying the two coordinates of a cell in one number..;well done.

    That being said, I did not manage to have the formula working (error message #NAME? ). I may be doing something wrong...
    I attached the dummy workbook with the formula in D23 so you can see.

    Would you mind taking a look?

    Many thanks in advance
    Attached Files Attached Files

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: identifying a cell in a range from its value

    Works for me I'm afraid - you may need to translate per your own version if non-english functions - are you using French, Dutch, German ?

    French | German |Dutch

    ROW: LIGNE | ZEILE | RIJ
    COLUMN: COLONNE | SPALTE | KOLOM

    MIN: all same as English
    Last edited by DonkeyOte; 04-19-2010 at 04:54 AM.

  8. #8
    Registered User
    Join Date
    04-18-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: identifying a cell in a range from its value

    You're right, I'm so used to working in both languages that I didn't pay attention to that.
    Once translated, it works.
    Now I will try the rest and will let you know.
    Again, many thanks.

  9. #9
    Registered User
    Join Date
    04-18-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: identifying a cell in a range from its value

    Alright, everything works as intended: you saved me.

    This topic can be marked as Solved.

    Thanks a lot!

    Enjoy your day

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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