+ Reply to Thread
Results 1 to 4 of 4

Applying formula to entire column

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Applying formula to entire column

    I have a bunch of info in column A, and subsequent columns I want to search every cell in column A for specific phrases. So for instance:

    Column A:
    OG=1.064
    IBU=20
    SRM=7.4
    ...and so on.

    In cell B1 I want to search for "OG=1.000". Cell B2 I want to search for "OG=1.001", and so on up to 1.300, using the following forumla:
    =IF(ISNUMBER(FIND("OG=1.064",A:A)),"1.064", "0")

    and so I should see a column of 300 zeros and a single non-zero value which will be the one it found in column A (in this case, 1.064).

    In cell C I want to do the same but for IBU, and cell D for SRM, etc.

    The problem I'm having is that in column B when I type in:
    =IF(ISNUMBER(FIND("OG=1.064",A:A)),"1.064", "0"), it is for some reason not searching all of column A but only in column A in the same row the formula is put into. I don't understand this since I put A:A in the forumla, which I thought meant it searches the entire column and not a specific cell.

    Any help?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,312

    Re: Applying formula to entire column

    Why not find that value directly? Enter this array-formula into any cell using Ctrl-Shift-Enter

    =INDEX(A:A, MATCH("OG",LEFT(A1:A1000,2),FALSE))

    or even the number itself, as a number:

    =VALUE(MID(INDEX(A:A,MATCH("OG",LEFT(A1:A1000,2),FALSE)),4,15))

    and so on....

    =INDEX(A:A, MATCH("IBU",LEFT(A1:A1000,3),FALSE))
    =INDEX(A:A, MATCH("SRM",LEFT(A1:A1000,3),FALSE))
    Last edited by Bernie Deitrick; 10-01-2015 at 10:29 AM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Applying formula to entire column

    Thanks for the reply.

    I should have mentioned that the data in column A will change all the time, it will be imported from an xml each day with different data. So in stead of looking for my OG and IBU data, etc, manually in the xml (or in column A for that matter), I'd like to make an automated set of functions that tell me, "in that column over there, this is the OG, this is the IBU, etc...

    And I should mention that the data in column A actually looks like this:

    <F_R_OLD_EFFICIENCY>72.0000000</F_R_OLD_EFFICIEN
    <F_R_DESIRED_IBU>20.0000000</F_R_DESIRED_IBU>
    <F_R_DESIRED_COLOR>10.0000000</F_R_DESIRED_COLOR
    <F_R_COLOR_ADJ_STRING></F_R_COLOR_ADJ_STRING>
    <F_R_DESIRED_OG>1.0524001</F_R_DESIRED_OG>
    <F_R_REBALANCE_SCALE>0</F_R_REBALANCE_SCALE>

    So instead of looking or Cntl-F finding IBU and then typing in 20, I'd like functions find that after <F_R_DESIRED_IBU> the number is 20.

    Thanks!

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,312

    Re: Applying formula to entire column

    For IBU, use

    =VALUE(MID(INDEX(A:A,MATCH("*IBU*",A:A,FALSE)),FIND(">",INDEX(A:A,MATCH("*IBU*",A:A,FALSE)))+1,FIND("<",INDEX(A:A,MATCH("*IBU*",A:A,FALSE)),2)-FIND(">",INDEX(A:A,MATCH("*IBU*",A:A,FALSE)))-1))

    This finds whatever number is between the > and <

    If you want, enter IBU into cell C1, and use

    =VALUE(MID(INDEX(A:A,MATCH("*" & C1 & "*",A:A,FALSE)),FIND(">",INDEX(A:A,MATCH("*" & C1 & "*",A:A,FALSE)))+1,FIND("<",INDEX(A:A,MATCH("*" & C1 & "*",A:A,FALSE)),2)-FIND(">",INDEX(A:A,MATCH("*" & C1 & "*",A:A,FALSE)))-1))

    Then copy that down and enter the other values starting in C2.
    Last edited by Bernie Deitrick; 10-01-2015 at 02:57 PM.

+ 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] Applying formula to entire column doesn't always seem to work
    By Drayde in forum Excel General
    Replies: 3
    Last Post: 03-13-2014, 10:46 AM
  2. applying formula to the entire column
    By stunbradfordlgb in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-21-2013, 08:28 AM
  3. Applying code to entire column
    By RCG_80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 02:43 AM
  4. Replies: 6
    Last Post: 02-16-2012, 04:52 PM
  5. applying formula to entire colum
    By vipul.halbe in forum Excel General
    Replies: 1
    Last Post: 07-04-2011, 03:13 AM
  6. Applying reference formula to entire column
    By aznprod517 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2009, 09:20 AM
  7. applying a formula to more than one cell or entire column
    By excelerate2007 in forum Excel General
    Replies: 4
    Last Post: 03-29-2007, 10:08 AM
  8. Applying a formula to an entire column
    By Audrey in forum Excel General
    Replies: 3
    Last Post: 04-20-2006, 02:30 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