Results 1 to 5 of 5

Thread: How to get Excel forumla

  1. #1
    Join Date
    Dec 2008
    Posts
    112

    How to get Excel forumla

    I am seeking to get a cell reference (row and column) for the cell in which particular text is found. I need an excel formula to find the part of the text in the range of cells and display the values. Essentially, I would like to be able to do a vlookup() but instead of getting the value from a different column, I'd like to get the row number. How do you make the silly thing count to the next number....from 1 and the next time you open it up it will be on 2.

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: How to get Excel forumla

    You can use the MATCH formula for that. It returns the position of the matched result on the searched range, so if you use the full column (or a range starting on the first row), it will return the row number where the match is. For example:
    =INDEX(A1,B:B,0);=AVERAGE(LARGE(A1:A60,ROW(INDIRECT("1:10"))))
    you can try to call the method with with an empty/dummy workbook reference, it MAY work for formulas without Names or 3D references, but be sure to catch all exceptions if you do that.

  3. #3
    Join Date
    Jan 2009
    Posts
    143

    Re: How to get Excel forumla

    I used the following formula,It seems to be working but only to that cell if i try to put the same formula in another sheet or another cell ,I don't see the values.

    My Formula is as follows.
    =IF((OR(A1:A25="ARRA 123",A1:A25="NoN ARRA 123")),B1:B25,0)

    If you want to copy a range of formulas without changing the references, you can use "Replace With", CNTRL H.

  4. #4
    Join Date
    Feb 2009
    Posts
    105

    Re: How to get Excel forumla

    However, since formula's contain references to other parts of the file, you'll need a reference to a workbook to get a string representation. I'm not sure if you're interested at all, but I found out what the problem was. When you specify the formula with the dynamic range you must put the dynamic range in quotes so instead of having ActiveCell.Formula = "=MEDIAN(Patientrange)" you must have ActiveCell.Formula = "=MEDIAN(" & Patientrange & ")". But now you are saying that you want values in B so it means you want to see column A values in B then write below formula in B.

  5. #5
    BertieStan Guest

    Re: How to get Excel forumla

    The best way to do this, assuming your explanation is not a vast over simplification of your real problem, would be with a pivot table.Select your range (columns must have unique labels) go to pivot table (data->pivot table in excel 2003) and put height on the left axis and count of height in the data area, click finish and that should do you.

Similar Threads

  1. Replies: 6
    Last Post: 17-02-2012, 01:18 PM
  2. Cell format errors appears in Excel 2003 but not in Excel 2000
    By @nki$achi in forum MS Office Support
    Replies: 1
    Last Post: 24-01-2012, 05:00 PM
  3. Excel 2007 file fails to get permission to open in Excel 2011
    By Raju Chacha in forum Windows Software
    Replies: 6
    Last Post: 13-01-2012, 09:17 PM
  4. Replies: 6
    Last Post: 17-05-2011, 10:00 PM
  5. Replies: 4
    Last Post: 13-02-2011, 10:37 AM

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,713,522,150.90743 seconds with 17 queries