+ Reply to Thread
Results 1 to 22 of 22

How do you ignore data and calculate other data in the same cell ie 21A (5.5)

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Smile How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Hi there I have a cell with two parts of data which looks like this 21A (5.5) now 21A is a location plot number and the (5.5) is the area in rods of the plot.

    Now I need to calculate the cost of this plot by multiplying the number of rods by the cost per rods, so is there a way of just using the number in the brackets in a sum and ignoring the rest of the information, now I know I could just make another cell with the 5.5 bit in it but it makes the spread sheet too complicated and wide

    Thanks in advance

    Sean
    Last edited by Seanie; 09-20-2013 at 10:59 AM. Reason: Rules

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Hi,

    =EXP(0)*MID(A1,FIND("(",A1)+1,FIND(")",A1)-(FIND("(",A1)+1))

    Regards
    Click * below if this answer helped

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

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    EXP(0)?????? surely thats just 1 or am i missing something?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  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: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    "EXP(0)?????? surely thats just 1 or am i missing something?"

    No - you're not missing anything. Just in a creative/pretentious mood!

  5. #5
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Wow that works really great!

    But sorry I should have added that I have to add up 5 cells it B9 C9 D9 E9 F9 all grabbing the information in the brackets and and ignoring the other information in the cells

    Thanks again!!!

  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: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    No worries, but you'll need to make sure you enter this as an array-formula this time:

    =SUM(--MID(B9:F9,FIND("(",B9:F9)+1,FIND(")",B9:F9)-(FIND("(",B9:F9)+1)))

    Regards

  7. #7
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Dear master Martindwilson, Good afternoon.

    Of course you know that the result of the formula presented before generates a TEXT.

    This EXP(0) is just one of the little tricks to transform a number written in text format in a real value.
    Some people use the VALUE function or even MULTIPLY whole formula by 1. ( *1 )

    Thatīs it. MS Excell gives opportunity to everyone to use imagination while solving your questions.

    Have a nice day.


    Regards from Brazil.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    @Mazzaropi you do realise that any number to the power of 0 is 1

  9. #9
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    I tried this but get an error #VALUE!


    I have attached a spread sheet hopefully showing what I have done wrong

    Thanks again
    Attached Files Attached Files

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Did you heed my emboldened, important advice about this having to be entered as an array formula?

    Regards

  11. #11
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Not sure how to do that I have uploaded what I did sorry for being a bit dim

  12. #12
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    @martindwilson - Thatīs the intention of our creative member XOR LX.

    The operation donīt modify the value BUT transform TEXT to VALUE. Goal achieved.

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Array formulas are confirmed with CTRL+SHIFT+ENTER, not just the usual ENTER.

    Regards

  14. #14
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    can you download my example and upload your fix please?

    Thanks in advance

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    "can you download my example and upload your fix please?"

    I don't understand - like I said, you just take the formula I gave you, edit it in the formula bar, and instead of pressing ENTER like you normally do when you've finished typing in a formula, you hold down CTRL+SHIFT and then press ENTER.

    You'll know you've done it right if you see curly brackets {} around the formula.

    At least have a go!

    Regards

  16. #16
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Ah I did the CTRL+SHIFT+ENTER and it works now, but.... the is still an error #VALUE! when there is no data in a field, some people have 1 plot some have 2 and some have 3 and some have up to 5 plots so sometimes a cell will be empty how do I make the formula handle cells with no data?

    You are amazing by the way!

    Thanks
    Last edited by Seanie; 09-20-2013 at 11:59 AM.

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Ok, I see:

    =SUM(IFERROR(--MID(I8:M8,FIND("(",I8:M8)+1,FIND(")",I8:M8)-(FIND("(",I8:M8)+1)),0))

    Regards

  18. #18
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Mazzaropi you are missing the point ,for example
    =MOD(1001,1000)
    =1234567/1234567
    =LOG10(10)
    =EXP(0)
    =CEILING(12/13,1)
    =COMBIN(3,3)
    all =1 which would you rather type? those or just 1?

  19. #19
    Registered User
    Join Date
    09-20-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Thank you so much for your help I have been trying to do this for about 4 hours and got no where!



    All working now!!!

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    @Seanie You're welcome.

    @martindwilson Forgive me, but I think you're the one who's misunderstanding - I'm sure Mazzaropi is fully aware that all those equate to 1, as does my EXP(0) - and, logically-speaking, it's a little absurd to use anything else other than 1*, or 0+, etc. in these constructions, but I for one (and evidently Mazzaropi for another) don't see any great harm in occasionally using alternatives (however unnecessary and redundant they may be), provided that no great confusion or misinformation is caused to the OP (or other readers), even if that means the 'cost' of typing a few extra letters.

    After all, is EXP(0)* really that much less self-explanatory than the ubiquitous double-unary?

    Regards

  21. #21
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    yes!.................................................. when 1 will suffice

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

    Re: How do you ignore data and calculate other data in the same cell ie 21A (5.5)

    Haha! Ok, I can see that I'm not going to win you over on this one!

    Just watch out for my future constructions!!

+ 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. Newbie
    By johnpaul.pagsolingan in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 03-04-2013, 02:26 AM
  2. set tabs to auto date
    By bgeiger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2013, 03:33 PM
  3. Hi from a Newbie
    By LtCol in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-11-2012, 07:53 AM
  4. newbie
    By muffybean in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-10-2012, 02:49 PM
  5. Newbie with newbie question
    By elgrandekazoo in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-28-2005, 02:13 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