+ Reply to Thread
Results 1 to 3 of 3

need help in IF function

  1. #1
    Registered User
    Join Date
    12-16-2015
    Location
    earth
    MS-Off Ver
    2007
    Posts
    2

    need help in IF function

    hi all, i need helps on my sheet.

    im using a formula like "j2=COLUMN(INDIRECT(B2&1))" to change certain text into number. my problem is sometimes the column using number and sometimes it using text.

    example:
    b2 = 1 j2 = =COLUMN(INDIRECT(B2&1))
    c2 = a j3 = =COLUMN(INDIRECT(c2&1))
    d2 = 3 j4 = =COLUMN(INDIRECT(d2&1))
    e2 = b j5 = =COLUMN(INDIRECT(e2&1))

    in
    b4 = j2
    c4 = j3
    d4 = j4
    e4 = j5

    some of it will return an error. the question is how can i using 'IF' function to select if it is a number then it will direct return to b4 but if it is an alphabet then it will choose to convert it to number. hope u guys understand what im trying to ask here.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: need help in IF function

    =if(isnumber(b2),b2,column(indirect(b2&1)))

  3. #3
    Registered User
    Join Date
    12-16-2015
    Location
    earth
    MS-Off Ver
    2007
    Posts
    2

    Re: need help in IF function

    wow..its works. Thanks a lot Mr brokenbiscuit for your helps. you are a lifesaver :D

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  3. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  4. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  5. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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