Author Topic: Paging the Excel gurus ... again  (Read 556 times)

Hawkmoon

  • friend
  • Senior Member
  • ***
  • Posts: 27,245
Paging the Excel gurus ... again
« on: November 06, 2018, 10:07:56 AM »
Working on setting up a rather complicated (for me, at least) spreadsheet. I think what I need is a combination of the VLOOKUP function and the AND function, but I don't know how to combine them to make it work. Here's the deal:

I building codes, the minimum required exit width is a multiplier times the occupant load (number of people occupying the space/floor). The multiplier is different for stairs than it is for doors, ramps, and corridors. There are a number of different occupancy classifications and, while the width multipliers are generally 0.3 inches per person for stairs and 0.2 inches per person for everything else, in a few occupancy classification this changes ... and may also be different if the building doesn't have a sprinkler system.

I'm trying to come up with a spreadsheet in which I can just enter the room names, numbers, and area and have the spreadsheet calculate the required exit width.

[There are similar calculations for required numbers of toilet fixtures based on occupant load, but if I can figure out how to do the egress width I think I can extrapolate to do the fixture count.]

Would any Excel gurus be interested in taking a shot at it? If so, the simplest thing might be for you to send me a PM with an e-mail address and I'll send you the spreadsheet with the lookup table already entered.
- - - - - - - - - - - - -
100% Politically Incorrect by Design

HeroHog

  • Technical Site Pig
  • Administrator
  • Senior Member
  • *****
  • Posts: 8,039
  • It can ALWAYS get worse!
    • FaceButt Profile
Re: Paging the Excel gurus ... again
« Reply #1 on: November 06, 2018, 04:54:38 PM »
Send it! I'll do it.
I might not last very long or be very effective but I'll be a real pain in the ass for a minute!
MOLON LABE!

Doggy Daddy

  • Poobah
  • friend
  • Senior Member
  • ***
  • Posts: 5,332
  • From the saner side of Las Vegas
Re: Paging the Excel gurus ... again
« Reply #2 on: November 06, 2018, 09:25:39 PM »
I'll have a look at it.  Addy inbound.
Would you exchange
a walk-on part in a war
for a lead role in a cage?
-P.F.

Doggy Daddy

  • Poobah
  • friend
  • Senior Member
  • ***
  • Posts: 5,332
  • From the saner side of Las Vegas
Re: Paging the Excel gurus ... again
« Reply #3 on: November 06, 2018, 11:47:43 PM »
Got it. I think it's going to be easier than you think, but I need to grasp what's going on a bit clearer.  I'll get some time to look at it closer tomorrow.
Would you exchange
a walk-on part in a war
for a lead role in a cage?
-P.F.

KD5NRH

  • friends
  • Senior Member
  • ***
  • Posts: 10,926
  • I'm too sexy for you people.
Re: Paging the Excel gurus ... again
« Reply #4 on: November 07, 2018, 08:17:03 PM »
Just put in a 14' wide rollup for each room.  Anything smaller and some moron will block it to answer a text.

"Now livestreaming from the primary fire exit at the burning plastics factory."

HeroHog

  • Technical Site Pig
  • Administrator
  • Senior Member
  • *****
  • Posts: 8,039
  • It can ALWAYS get worse!
    • FaceButt Profile
Re: Paging the Excel gurus ... again
« Reply #5 on: November 12, 2018, 11:53:40 PM »
@Hawkmoon, I'm still looking at this but I too need your input. I messaged ya my number. Gimme a call and I will get this done. Would have hollered sooner but I've been fighting migraines. Sorry bud.
I might not last very long or be very effective but I'll be a real pain in the ass for a minute!
MOLON LABE!

HeroHog

  • Technical Site Pig
  • Administrator
  • Senior Member
  • *****
  • Posts: 8,039
  • It can ALWAYS get worse!
    • FaceButt Profile
Re: Paging the Excel gurus ... again
« Reply #6 on: November 13, 2018, 12:44:43 AM »
Looks like this is what ya were looking for:
In Cell G13
Code: [Select]
=IF($D13="","",IF(LOWER($O$6)="n",VLOOKUP($D13,$AA$13:$AE$35,2,FALSE),VLOOKUP($D13,$AA$13:$AE$35,4,FALSE)))
In Cell I13
Code: [Select]
=IF($D13="","",IF(LOWER($O$6)="n",VLOOKUP($D13,$AA$13:$AE$35,3,FALSE),VLOOKUP($D13,$AA$13:$AE$35,5,FALSE)))
And copy that same formula down by COLUMN. I can send ya the complete sheet back.

NOTE: ROW 19 gets #N/A errors because the D19 value of "A-3" does not exist in the lookup table.

 :old:
I might not last very long or be very effective but I'll be a real pain in the ass for a minute!
MOLON LABE!

Hawkmoon

  • friend
  • Senior Member
  • ***
  • Posts: 27,245
Re: Paging the Excel gurus ... again
« Reply #7 on: November 13, 2018, 12:29:49 PM »
Looks good, Sir. My respects to your Excel prowess. You tossed in a couple of functions I wouldn't have known to even think about using.
- - - - - - - - - - - - -
100% Politically Incorrect by Design

HeroHog

  • Technical Site Pig
  • Administrator
  • Senior Member
  • *****
  • Posts: 8,039
  • It can ALWAYS get worse!
    • FaceButt Profile
Re: Paging the Excel gurus ... again
« Reply #8 on: November 13, 2018, 02:07:10 PM »
Any time bud!
I might not last very long or be very effective but I'll be a real pain in the ass for a minute!
MOLON LABE!