Results 1 to 5 of 5

Thread: Search formula in Excel

  1. #1
    Join Date
    Sep 2009
    Posts
    125

    Search formula in Excel

    I have a table, a column M with a formula "IF". This formula tells me different values ranging from 4 to 0, so decreasing. That is, I have several lines that follow each with 4, then several other lines with 3 .... until 0.

    What I would do:
    I get to the first cell that displays a 0, the value of cell in the same row, column E.

    For example, if the first 0 appears in cell M9, I get the value in cell E9.

    I tried with different formulas "Search" I do not really control, could you tell me what formula to return?

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Search formula in Excel

    Here is one method (there are probably others), I hope it matches your request:

    A set M2 (I imagine you have a title)

    Code:
    =IF(M1=0;IF(YourFormula);IF(M1=E1;IF(YourFormula);IF(IF(YourFormula)=0;E2;IF(YourFormula))))
    Replaces YourFormula by the formula that you have currently in M2 and pulls down.

  3. #3
    Join Date
    Sep 2009
    Posts
    125

    Re: Search formula in Excel

    Thank you for your quick response!

    I do not think the formula is appropriate. Or maybe it's me who did not understand (which is quite possible too!)

    Columns that interest me are the columns M and E. In column M, the values (using a formula IF) range from 2 to 0:
    M3 to M18 2
    From M19 to M36: 1
    From M37: 0

    I bring up my cell B7 the value of the cell E when the first 0 in column M.

    In my case, it would be to appear in cell B7 the value 37 which corresponds to cell E39.

    The interest is to have the user directly to the value 37 under the eyes, without his having to enter formulas or manipulated to do with the column M.

    I hope I have been more clear.

  4. #4
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Search formula in Excel

    Your explanations was clearer. You can content yourself with counting the number of rows in column M whose value is greater than 0 (1 to get the expected result). Specifically a "sum if" in the matrix and you're done (you can also do this with SUMPRODUCT but I am less familiar).

    Code:
    {=SUM(IF(M$3:M$47>0;1;0))+1}
    To recall who told array formula () for having validated the formula with Ctrl + Shift + Enter

  5. #5
    henrythomas Guest

    Re: Search formula in Excel

    To quickly show all formulas in your Excel spreadsheet hold down the CONTROL key on the keyboard and press the grave accent key.Show formulas does not change the spreadsheet, only the way it is displayed.
    Advantage of this formula:
    1) It allows you to quickly read through all formulas to check for errors
    2) When you click on a formula, Excel outlines in color the cells referenced in the formula. This helps you to trace the data being used in a formula.

Similar Threads

  1. Need formula help for MS Excel
    By RlyPlyPanda in forum MS Office Support
    Replies: 1
    Last Post: 08-05-2012, 01:46 PM
  2. Excel Formula
    By Scott2580 in forum MS Office Support
    Replies: 2
    Last Post: 15-02-2011, 02:21 PM
  3. Excel formula
    By Me Me Taylor in forum Windows Software
    Replies: 2
    Last Post: 06-04-2009, 04:11 PM
  4. Need help converting formula into value in Excel
    By prakashseth in forum Software Development
    Replies: 2
    Last Post: 20-11-2008, 05:15 PM
  5. Need help in excel formula
    By Landon in forum Software Development
    Replies: 2
    Last Post: 27-10-2008, 03:28 PM

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
  •  
Page generated in 1,751,618,675.13612 seconds with 16 queries