+ Reply to Thread
Results 1 to 12 of 12

Help with nested If(ISERROR) function

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    Chicago suburbs
    MS-Off Ver
    Excel 2003
    Posts
    23

    Help with nested If(ISERROR) function

    Hello-

    I'm a newbie to the forum and am entirely self-taught in excel. While I've wound up with a better-than-the-average-amateur skill set, I'm stumped on a formula I'm trying to get to work.

    I'm attempting to get a product based on input from another cell which may be variable. For example, the information may appear as (2 digits)*(2 digits) or (2 digits)*(1 digit) or (1 digit)*(1 digit). In other words, 12x10, 12x8, or 8x8. I was able to get as far as

    =IF(ISERROR(LEFT(C22,2)*RIGHT(C22,2)),LEFT(C22,2)*RIGHT(C22,1), LEFT(C22,2)*RIGHT(C22,2))

    but haven't been able to construct a statement that will allow me the additional step(s) of calculating if the input is "8x8" or "8x12." I had attempted

    =IF(ISERROR(LEFT(C22,2)*RIGHT(C22,2)),LEFT(C22,2)*RIGHT(C22,1),IF(ISERROR(LEFT(C22,2)*RIGHT(C22,1)),LEFT(C22,1)*RIGHT(C22,1),LEFT(C22,2)*RIGHT(C22,2)))

    but I know I'm missing something.

    My worksheet relies on information input by others, so 12x8 sometimes appears as 8x12, so I'm hoping to include a rule for that, as well.

    Any assistance is incredibly appreciated.

    Thank you!

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help with nested If(ISERROR) function

    try this formula in cell B1 if your data is in cell A1:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    04-28-2014
    Location
    Chicago suburbs
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Help with nested If(ISERROR) function

    That didn't work; it's returning #VALUE! as the answer. Should the above formula be used to replace the entire formula I had, or should it replace only a portion?

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help with nested If(ISERROR) function

    Hi,

    Can you post a few examples together with your expected results?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help with nested If(ISERROR) function

    See attached workbook for a working example
    Attached Files Attached Files

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help with nested If(ISERROR) function

    Not sure I understand.

    All I can see are five sets of values and five working formulas, none of which are erroring.

    Regards

  7. #7
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help with nested If(ISERROR) function

    To Xor LX: i,m not the OP. This file is my solution to this thread as I understand it.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Help with nested If(ISERROR) function

    @p24leclerc

    Sincere apologies. Very mindless of me.

    Regards

  9. #9
    Registered User
    Join Date
    04-28-2014
    Location
    Chicago suburbs
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Help with nested If(ISERROR) function

    workbook for Excel forum help.xls

    This workbook is for real estate valuation. I have my own way of doing it. It could take a really long time, so I came up with this. The problem is that room dimensions are sometimes 12x12 (two by two), which works fine, or 12x9 (two by one), and sometimes 9x9 (one by one). I figured out how to do two by two and two by one. The problem arises when the dimensions are entered by another user as 9x12 (one by two) or 9x9 (one by one). I haven't been able to get it to work. E22's formula is what I have that works if the entered values are two by two or two by one. E25's formula is was I attempted to get further, but it doesn't work. If I switch 10x7 to 7x10, I get #VALUE! I am at the present limit of what I can guess.

    Additionally, while we're here, you'll see #VALUE! in E28-E32. There are blank fields in the B and C columns which would auto-populate were the listing information to employ them. I was able to figure out how to get the B and C cells to show as blank but not the E cells. What am I doing wrong there? Or is it because those cells rely on information from another sheet, maybe? Lost.

    Thanks, THANKS, to all for their input and assistance. I am not a "math" person by nature or training.

  10. #10
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help with nested If(ISERROR) function

    See the formula in your workbook
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-28-2014
    Location
    Chicago suburbs
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Help with nested If(ISERROR) function

    Thank you! That works wonderfully. I don't completely understand it, but it works great. (Sorry it took me a couple days to get back here.)

  12. #12
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help with nested If(ISERROR) function

    Here is how it works:
    The formula being:
    Please Login or Register  to view this content.
    This part of the formula "FIND("X",C15,1)" looks for the position of the letter "X" within the cell's C15 text.
    Then, "LEFT(C15,FIND("X",C15,1)-1)" takes the LEFT part of the cell's text and the length of characters extracted will be the position of the letter X minus 1 "FIND("X",C15,1)-1".
    You then have "*" character which represent the multiplication.
    And finally, we take the right part of the cell's text with "RIGHT(C15,LEN(C15)-FIND("X",C15,1))". Its length is the length of the whole text "LEN(C15)" minus the position of the letter X "FIND("X",C15,1)".
    Hope this makes it clear for you.
    Regards

+ 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. Nested IF with ISBLANK and ISERROR?
    By whizbee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 12:06 PM
  2. Nested IF ISERROR Statement
    By dash11 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2013, 03:11 AM
  3. Nested ISERROR?
    By SAsplin in forum Excel General
    Replies: 5
    Last Post: 03-09-2012, 08:18 AM
  4. Replies: 1
    Last Post: 12-15-2011, 08:43 PM
  5. Code to Assist with Nested Function, Also Using ISERROR
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2006, 09:50 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1