Roger’s Excel Thread - Page 6 - Antsmarching.org Forums - Dave Matthews Band Discussion
Old 05-10-2017, 05:41 PM   #151
BTBaboon
 
BTBaboon's Avatar
 
Join Date: Jul 2015
Posts: 51,508

Shows Seen: 31

DMB Hub Stubs: 10

My Tour Central Stats

Re: Excel Help

Quote:
Originally Posted by rconverse View Post
So is that actually needed or was it just him kind of getting a little to crazy with the example?

Also, if there are some cells that have an additional dash and then the "R1" or "R2", then he doesn't need that long IF(LEN(MID))) nested function. He can just use the LEN of the entire cell, which should make it a little easier and faster.
Yeah, I was a bit unclear on the R1/R2 as well.

By the way, if you don't mind me asking - what do you do for work? Assume it's something where you work frequently in excel (obviously )
BTBaboon is offline   Reply With Quote

  • Want to hide all ads on Ants? Click here
  • Old 05-10-2017, 05:41 PM   #152
    scrock25
     
    scrock25's Avatar
     
    Join Date: Aug 2002
    Posts: 85,695

    Shows Seen: 26

    DMB Hub Stubs: 11

    My Tour Central Stats

    Re: Excel Help

    Just fuck her right in the pussy.
    scrock25 is offline   Reply With Quote
    Old 05-10-2017, 05:56 PM   #153
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by BTBaboon View Post
    Yeah, I was a bit unclear on the R1/R2 as well.

    By the way, if you don't mind me asking - what do you do for work? Assume it's something where you work frequently in excel (obviously )
    I work in my company's inventory management department. I used to do data conversions on defined contribution plans, so I've been using all kinds of analytical tools for a decade or so.

    How about yourself?
    rconverse is offline   Reply With Quote
    Old 05-10-2017, 06:07 PM   #154
    Arby
    We Have The Meats
     
    Arby's Avatar
     
    Join Date: Jul 2004
    Posts: 89,484

    Shows Seen: 24

    DMB Hub Stubs: 12

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by scrock25 View Post
    Just fuck her right in the pussy.
    Really? In the excel thread?
    __________________
    -Arby
    Arby is offline   Reply With Quote
    Old 05-10-2017, 06:13 PM   #155
    scrock25
     
    scrock25's Avatar
     
    Join Date: Aug 2002
    Posts: 85,695

    Shows Seen: 26

    DMB Hub Stubs: 11

    My Tour Central Stats

    Re: Excel Help

    That's the point
    scrock25 is offline   Reply With Quote
    Old 05-10-2017, 06:50 PM   #156
    daveshookme
    Altuve wore a wire
     
    daveshookme's Avatar
     
    Join Date: Jun 2009
    Location: Supreme Courtyard by Marriott
    Posts: 62,665

    Shows Seen: 54

    DMB Hub Stubs: 20

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by Arby View Post
    Really? In the excel thread?



    We're a dignified, sophisticated people here!
    __________________
    Tape Cover Artwork
    daveshookme is offline   Reply With Quote
    Old 05-10-2017, 07:10 PM   #157
    BTBaboon
     
    BTBaboon's Avatar
     
    Join Date: Jul 2015
    Posts: 51,508

    Shows Seen: 31

    DMB Hub Stubs: 10

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by rconverse View Post
    I work in my company's inventory management department. I used to do data conversions on defined contribution plans, so I've been using all kinds of analytical tools for a decade or so.

    How about yourself?
    Gotcha, you are certainly a function guru!

    I'm in finance, FP&A and recently took on some finance IT systems management. Been trying to migrate 40 site's ERP systems into a division wide data warehouse
    BTBaboon is offline   Reply With Quote
    Old 05-10-2017, 07:17 PM   #158
    daveshookme
    Altuve wore a wire
     
    daveshookme's Avatar
     
    Join Date: Jun 2009
    Location: Supreme Courtyard by Marriott
    Posts: 62,665

    Shows Seen: 54

    DMB Hub Stubs: 20

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by BTBaboon View Post
    Gotcha, you are certainly a function guru!

    I'm in finance, FP&A and recently took on some finance IT systems management. Been trying to migrate 40 site's ERP systems into a division wide data warehouse
    https://www.youtube.com/watch?v=Ccoj5lhLmSQ
    __________________
    Tape Cover Artwork
    daveshookme is offline   Reply With Quote
    Old 05-10-2017, 07:32 PM   #159
    DIDriveOut2SPAC
    American Aquarium Drnkr
     
    DIDriveOut2SPAC's Avatar
     
    Join Date: Aug 2006
    Location: Boston, MA
    Posts: 26,291

    Shows Seen: 35

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by rconverse View Post
    Do you mean R1 and R2 as in there are sometimes 1 character after the dash and sometimes 2 characters after the dash?

    If so, why not use the LEN function to check for that?

    =IF(LEN(TRIM(MID(H3, FIND("-", H3, 1)+1, 40)))<2, "Formula for 1 character", "Formula for 2 characters")

    Also, is this just a static 6 that you're adding out of nowhere?



    Where the heck does that come into play?
    Thanks for the help guys

    I administrator a construction project that's being built currently. We receive product submittals by specification division in sequence. They go by division number and then what's being submitted

    12 34 56-01 product data
    12 34 56-02 shop drawings

    And so on

    Sent from my Pixel using Tapatalk
    __________________
    Dan|
    DIDriveOut2SPAC is offline   Reply With Quote
    Old 05-10-2017, 07:41 PM   #160
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by DIDriveOut2SPAC View Post
    Thanks for the help guys

    I administrator a construction project that's being built currently. We receive product submittals by specification division in sequence. They go by division number and then what's being submitted

    12 34 56-01 product data
    12 34 56-02 shop drawings

    And so on

    Sent from my Pixel using Tapatalk
    This doesn't exactly tell me where that 6 comes from or why it's needed.

    In your initial post, you as for help converting...

    This...

    Code:
    12345-01
    12345-02
    To this...

    Code:
    12 34 56-01
    12 34 56-02
    My question is whether or not you really want that 6 to be included. It kind of comes out of nowhere. That said, if the solution is working, that's all that matters.
    rconverse is offline   Reply With Quote
    Old 05-10-2017, 07:42 PM   #161
    DIDriveOut2SPAC
    American Aquarium Drnkr
     
    DIDriveOut2SPAC's Avatar
     
    Join Date: Aug 2006
    Location: Boston, MA
    Posts: 26,291

    Shows Seen: 35

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Here is the real world example I am talking about
    Attached Images
    File Type: jpg Capture.jpg (90.5 KB, 11 views)
    __________________
    Dan|
    DIDriveOut2SPAC is offline   Reply With Quote
    Old 05-10-2017, 07:46 PM   #162
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by BTBaboon View Post
    Gotcha, you are certainly a function guru!

    I'm in finance, FP&A and recently took on some finance IT systems management. Been trying to migrate 40 site's ERP systems into a division wide data warehouse
    Data warehousing and BI are seriously good fields to be in right now.
    rconverse is offline   Reply With Quote
    Old 05-10-2017, 07:50 PM   #163
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by DIDriveOut2SPAC View Post
    Here is the real world example I am talking about
    Okay, let's take the very first one...051200-14.

    Are you looking to see...

    05 12 00-14?

    Or are you looking to see something different?
    rconverse is offline   Reply With Quote
    Old 05-10-2017, 07:54 PM   #164
    DIDriveOut2SPAC
    American Aquarium Drnkr
     
    DIDriveOut2SPAC's Avatar
     
    Join Date: Aug 2006
    Location: Boston, MA
    Posts: 26,291

    Shows Seen: 35

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by rconverse View Post
    Okay, let's take the very first one...051200-14.

    Are you looking to see...

    05 12 00-14?

    Or are you looking to see something different?
    Thats exactly what I want it to look like, yes
    __________________
    Dan|
    DIDriveOut2SPAC is offline   Reply With Quote
    Old 05-10-2017, 07:57 PM   #165
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by DIDriveOut2SPAC View Post
    Thats exactly what I want it to look like, yes
    Okay, that's not a problem.

    What's the whole -R1 & -R2 thing? I didn't see any examples on your image. Are you saying that there are records in that column that may have an additional dash and characters after the second dash? If so, that can be accomplished as well.
    rconverse is offline   Reply With Quote
    Old 05-10-2017, 08:01 PM   #166
    daveshookme
    Altuve wore a wire
     
    daveshookme's Avatar
     
    Join Date: Jun 2009
    Location: Supreme Courtyard by Marriott
    Posts: 62,665

    Shows Seen: 54

    DMB Hub Stubs: 20

    My Tour Central Stats

    Re: Excel Help

    Roger's your man for excel help. I've all but given up on trying to help anybody else in here. He'll usually beat me to it and with a much cleaner answer
    __________________
    Tape Cover Artwork
    daveshookme is offline   Reply With Quote
    Old 05-11-2017, 08:53 AM   #167
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Almost forgot about this...

    TO convert 051200-14 to 05 12 00-14, you can use:

    =LEFT(A2,2)&" "&MID(A2,3,2)&" "&RIGHT(A2,5)

    If you can post the other variations, I can write a workaround for those.
    rconverse is offline   Reply With Quote
    Old 05-11-2017, 09:00 AM   #168
    BTBaboon
     
    BTBaboon's Avatar
     
    Join Date: Jul 2015
    Posts: 51,508

    Shows Seen: 31

    DMB Hub Stubs: 10

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by rconverse View Post
    Almost forgot about this...

    TO convert 051200-14 to 05 12 00-14, you can use:

    =LEFT(A2,2)&" "&MID(A2,3,2)&" "&RIGHT(A2,5)

    If you can post the other variations, I can write a workaround for those.
    Not doing a full backread, but what was up with the random '6' before?

    I had to put 2 MID functions in mine on the last page because of it, much smaller formula without it
    BTBaboon is offline   Reply With Quote
    Old 05-11-2017, 09:55 AM   #169
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by BTBaboon View Post
    Not doing a full backread, but what was up with the random '6' before?

    I had to put 2 MID functions in mine on the last page because of it, much smaller formula without it
    I don't believe he's said. I think he accidentally messed up the first part of his example. I think he thought he put...

    123456-06
    123456-07

    But he really didn't so it just looked like a random 6 to us. I'm actually interested to find out.
    rconverse is offline   Reply With Quote
    Old 05-11-2017, 10:00 AM   #170
    DIDriveOut2SPAC
    American Aquarium Drnkr
     
    DIDriveOut2SPAC's Avatar
     
    Join Date: Aug 2006
    Location: Boston, MA
    Posts: 26,291

    Shows Seen: 35

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by rconverse View Post
    Okay, that's not a problem.

    What's the whole -R1 & -R2 thing? I didn't see any examples on your image. Are you saying that there are records in that column that may have an additional dash and characters after the second dash? If so, that can be accomplished as well.
    Sorry for my late response.

    So lets use 051200-14 as the example again. Lets say that number is product data for me to review. If I review it and I don't accept the product they submitted, I will mark the corrections and return it revise and resubmit.

    When they resubmit that product data for review again it will have the same number 051200-14 but it will be revision 1. Therefore for logging purposes this would be submitted as 05 12 00-14-R1.
    __________________
    Dan|
    DIDriveOut2SPAC is offline   Reply With Quote
    Old 05-11-2017, 10:17 AM   #171
    DIDriveOut2SPAC
    American Aquarium Drnkr
     
    DIDriveOut2SPAC's Avatar
     
    Join Date: Aug 2006
    Location: Boston, MA
    Posts: 26,291

    Shows Seen: 35

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by rconverse View Post
    I don't believe he's said. I think he accidentally messed up the first part of his example. I think he thought he put...

    123456-06
    123456-07

    But he really didn't so it just looked like a random 6 to us. I'm actually interested to find out.
    You are correct.

    I attached a better example and i will explain the process:

    This is our submittal log for construction Divison 31. Division 31 in construction has to do with Earthwork on the building site.

    When we bid the project we also have a index of specifications that the Construction Manager needs to adhere by. So here in Div. 31 the CM is submitting his means and methods of working, the products hes going to use and the calculations, etc. he is required to provide before doing work (for mine the the engineers review). So that number that is confusing you is generated by Division / Section in the Division / Subsection if necessary / Order of submission (this helps the CM keep a steady timeline for work and so things don't get accidentally budged in line)

    So lets take the first one on top:

    Division: 31

    Section: 20

    Subsection (null): 00

    Order of Submission: -01

    = 31 20 00-01

    and if I don't accept it, then they revise and resubmit: -R1

    31 20 00-01-R1 <---- if need be

    I was away when a younger colleague of mine set this up and he didn't include the spacing, which we are all use to and is easier to find things quickly and efficiently.

    I got the formulas for date of return and review time to automatically generate from the dates that we input so I'm not THATTTT big of an idiot. i just couldn't figure this one out.

    The help is appreciated and I will test these out when I get some free time.
    Attached Images
    File Type: jpg Capture.jpg (89.4 KB, 3 views)
    __________________
    Dan|

    Last edited by DIDriveOut2SPAC; 05-11-2017 at 10:18 AM.
    DIDriveOut2SPAC is offline   Reply With Quote
    Old 05-11-2017, 07:51 PM   #172
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    Here you go...Pretty much allows for unlimited re-submissions.

    Quote:
    =IF(LEN(A2)=9, LEFT(A2,2)&" "&MID(A2,3,2)&" "&RIGHT(A2,5), LEFT(A2,2)&" "&MID(A2,3,2)&" "&TRIM(MID(A2, 5, 40)))

    Last edited by rconverse; 05-11-2017 at 07:52 PM.
    rconverse is offline   Reply With Quote
    Old 05-16-2017, 08:10 AM   #173
    Arby
    We Have The Meats
     
    Arby's Avatar
     
    Join Date: Jul 2004
    Posts: 89,484

    Shows Seen: 24

    DMB Hub Stubs: 12

    My Tour Central Stats

    Re: Excel Help

    Hey All

    Is there a fairly simple way - without changing the base formula - to get Excel to replace "#DIV/0" (aka formula divides by zero) with something else...preferably "N/A"?
    __________________
    -Arby
    Arby is offline   Reply With Quote
    Old 05-16-2017, 08:15 AM   #174
    daveshookme
    Altuve wore a wire
     
    daveshookme's Avatar
     
    Join Date: Jun 2009
    Location: Supreme Courtyard by Marriott
    Posts: 62,665

    Shows Seen: 54

    DMB Hub Stubs: 20

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by Arby View Post
    Hey All



    Is there a fairly simple way - without changing the base formula - to get Excel to replace "#DIV/0" (aka formula divides by zero) with something else...preferably "N/A"?


    You could do a conditional format, but that's going to be a bitch. I'm almost positive there's a setting somewhere in the excel options I just don't know exactly where it is.
    __________________
    Tape Cover Artwork
    daveshookme is offline   Reply With Quote
    Old 05-16-2017, 08:16 AM   #175
    BTBaboon
     
    BTBaboon's Avatar
     
    Join Date: Jul 2015
    Posts: 51,508

    Shows Seen: 31

    DMB Hub Stubs: 10

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by Arby View Post
    Hey All

    Is there a fairly simple way - without changing the base formula - to get Excel to replace "#DIV/0" (aka formula divides by zero) with something else...preferably "N/A"?
    =iferror(Your Formula that divides by zero,"N/A")

    You can replace N/A with whatever you want
    BTBaboon is offline   Reply With Quote
    Old 05-16-2017, 08:24 AM   #176
    Arby
    We Have The Meats
     
    Arby's Avatar
     
    Join Date: Jul 2004
    Posts: 89,484

    Shows Seen: 24

    DMB Hub Stubs: 12

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by BTBaboon View Post
    =iferror(Your Formula that divides by zero,"N/A")

    You can replace N/A with whatever you want
    Does that involve adding =iferror into each cell with the formula?

    Sorry, bit of an Excel simpleton
    __________________
    -Arby
    Arby is offline   Reply With Quote
    Old 05-16-2017, 08:30 AM   #177
    BTBaboon
     
    BTBaboon's Avatar
     
    Join Date: Jul 2015
    Posts: 51,508

    Shows Seen: 31

    DMB Hub Stubs: 10

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by Arby View Post
    Does that involve adding =iferror into each cell with the formula?

    Sorry, bit of an Excel simpleton
    Yes, so if your formula is currently =A1/B1; the new formula would be:

    =iferror(A1/B1,"N/A")

    Ensure you have a comma after B1 and ensure the N/A is surrounded by quotes. Then you can just drag the formula down to all cells in the column

    Last edited by BTBaboon; 05-16-2017 at 08:31 AM.
    BTBaboon is offline   Reply With Quote
    Old 05-16-2017, 08:36 AM   #178
    rconverse
     
    rconverse's Avatar
     
    Join Date: May 2003
    Location: Pretty Boy Blue State
    Posts: 77,945

    Shows Seen: 25

    DMB Hub Stubs: 14

    My Tour Central Stats

    Re: Excel Help

    You could also avoid the error with an IF statement.

    =IF(B1=0,"N/A", A1/B1)

    You could also use the NA function, which I think is easier to deal with than the actual text of "N/A".

    =IF(B1=0,NA(), A1/B1)
    rconverse is offline   Reply With Quote
    Old 05-16-2017, 08:43 AM   #179
    Arby
    We Have The Meats
     
    Arby's Avatar
     
    Join Date: Jul 2004
    Posts: 89,484

    Shows Seen: 24

    DMB Hub Stubs: 12

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by BTBaboon View Post
    Yes, so if your formula is currently =A1/B1; the new formula would be:

    =iferror(A1/B1,"N/A")

    Ensure you have a comma after B1 and ensure the N/A is surrounded by quotes. Then you can just drag the formula down to all cells in the column
    Quote:
    Originally Posted by rconverse View Post
    You could also avoid the error with an IF statement.

    =IF(B1=0,"N/A", A1/B1)

    You could also use the NA function, which I think is easier to deal with than the actual text of "N/A".

    =IF(B1=0,NA(), A1/B1)
    hmm - thank for these suggestions! Only trouble is that formulas are already entered. I likely wont be able to adjust for this go round, but Ill definitely use this in the future

    Its a pretty huge doc
    __________________
    -Arby
    Arby is offline   Reply With Quote
    Old 05-16-2017, 08:44 AM   #180
    BTBaboon
     
    BTBaboon's Avatar
     
    Join Date: Jul 2015
    Posts: 51,508

    Shows Seen: 31

    DMB Hub Stubs: 10

    My Tour Central Stats

    Re: Excel Help

    Quote:
    Originally Posted by Arby View Post
    hmm - thank for these suggestions! Only trouble is that formulas are already entered. I likely wont be able to adjust for this go round, but Ill definitely use this in the future

    Its a pretty huge doc
    Are all the formulas in the same column, referencing two adjacent columns?
    BTBaboon is offline   Reply With Quote
    Reply

    Tags
    excel

    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off

    Forum Jump


    Want to hide all ads on Ants? Click here

    All times are GMT -7. The time now is 01:15 PM.


    Powered by vBulletin® Version 3.8.14
    Copyright ©2000 - 2024, vBulletin Solutions Inc.


       
    Site LinksAbout AntsAnts MobileTweet Tweet
    Home
    Ants+
    Tour Central
    Search bar
    RSS Feeds
    About Us
    Contact Us
    The Ants Blog
    Advertise on Ants
    Privacy Policy
    Ants on your cell phone
    iAnts
    mobile news
    mobile setlists
    antslive!
    Ants' Twitter
    DMBLive Twitter
    Ants Facebook
    Ants Instagram