+ Reply to Thread
Results 1 to 6 of 6

What is wrong with my formula?

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    What is wrong with my formula?

    A1:A10 contain text (no duplicate). B1 contain text. I wan to return the row of A1:A10 if it equal B1.

    In C1, my formula is =IF(A1:A10=B1,ROW(A1:A10)), Ctrl SHift Enter.
    However, it does not work.

    I know i can easily use a Match formula for this. BUt i dun understand y my formula does not work.
    I am showing my colleague an example of Array formula, hence thot this is simple enough.....
    Anyone can help?

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: What is wrong with my formula?

    =IF(A1:A10=B1,ROW(A1:A10))
    This will return 10 result of {FALSE;… ;x,…;FALSE}, where x is row number that =B1
    Select C1 and press F9 to see results

    if you need row number you may try with CSE to extract number

    =MIN(IF(A1:A10=B1,ROW(A1:A10))) or

    =MAX(IF(A1:A10=B1,ROW(A1:A10)))

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: What is wrong with my formula?

    Hi, i tried and it work. I also tried using Large, Small and Sum. All work. So the additional function (min, max etc) is to convert the array into number? How come it does not work when i put a 1* infront or -- infront?

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: What is wrong with my formula?

    Best way to attach sample file with required desired result enter manually.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: What is wrong with my formula?

    @jp16

    Please edit title
    Last edited by Bo_Ry; 11-21-2018 at 07:20 AM.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: What is wrong with my formula?

    @jp16

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )

    No further help to be offered until this request is fulfilled.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. [SOLVED] Macro exporting and saving the wrong page with wrong name
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2018, 01:24 PM
  2. [SOLVED] Wrong formula or wrong function?
    By cpope in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2017, 10:27 AM
  3. IRR formula seems wrong
    By aalsaffa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2017, 07:11 PM
  4. What is wrong with this IF formula
    By mfhaq77 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-28-2017, 04:05 PM
  5. What is wrong with this formula?
    By rkjudy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-11-2014, 04:17 PM
  6. What is wrong with this formula?
    By scott45 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-27-2005, 02:05 PM
  7. [SOLVED] What is wrong with this formula?
    By Darren in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-26-2005, 09:05 AM

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