PC Review


Reply
Thread Tools Rate Thread

Could someone give me some pointers

 
 
mykaltx
Guest
Posts: n/a
 
      16th Aug 2005

I am writing a workbook that can calculate the weights of steel. Ther
are space issues with the workbook. It will be used in our shop and i
needs to stay simple.

I got some good advise from some folks on here. They told me it was
bad idea to use merged cells.

I am trying to write a formula for a trapezoid. I am really bad a
using the left and right cell functions. I really want to use these
The way I got the trapezoid formula was to add columns and cells. If
can use a formula that uses the right and left formulas I would prefe
this. Here is the formula that I was able to come up with
=IF(LEFT(G22,3)="TPL",((O22*12+Q22
S22*12+U22)/2*(W22*12+Y22))*VLOOKUP(G22,Sheet2!A:B,2,FALSE)/144*D22,((W22*12)+Y22)*(VLOOKUP(G22,Sheet2!A:B,2,FALSE)/12)*D22)

I have posted the information on my web page for people to look at t
verify what I am talking about. Let me know if you have any question
or comments. WWW.MYKALTX.CO

--
mykalt
-----------------------------------------------------------------------
mykaltx's Profile: http://www.excelforum.com/member.php...fo&userid=2205
View this thread: http://www.excelforum.com/showthread.php?threadid=39615

 
Reply With Quote
 
 
 
 
Harlan Grove
Guest
Posts: n/a
 
      16th Aug 2005
mykaltx wrote...
>I am trying to write a formula for a trapezoid. I am really bad at
>using the left and right cell functions. I really want to use these.


Why? What does your data look like that you believe you need to use
the LEFT and RIGHT functions?

>The way I got the trapezoid formula was to add columns and cells. If I
>can use a formula that uses the right and left formulas I would prefer
>this. Here is the formula that I was able to come up with.


>=IF(LEFT(G22,3)="TPL",((O22*12+Q22+S22*12+U22)/2
>*(W22*12+Y22))*VLOOKUP(G22,Sheet2!A:B,2,FALSE)/144*D22,
>((W22*12)+Y22)*(VLOOKUP(G22,Sheet2!A:B,2,FALSE)/12)*D22)


You could shorten this by removing common terms outside the IF call.

=IF(LEFT(G22,3)="TPL",(O22*12+Q22+S22*12+U22)/24,1)
*(W22*12+Y22)*VLOOKUP(G22,Sheet2!A:B,2,FALSE)/12*D22

If you have data in G22 that you want to parse, then extract substrings
between spaces. E.g., to extract 1 23 and 345 from

abc 1 def 23 ghi 456 xyz

if you know that all 'fields' are separated by spaces and only the even
index fields (2nd, 4th and 6th) are of interest,

2nd field (array formula):
=MID(x,SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),1)+1,
SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),2)
-SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),1))

4th field (array formula):
=MID(x,SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),3)+1,
SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),4)
-SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),3))

6th field (array formula):
=MID(x,SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),5)+1,
SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),6)
-SMALL(IF(MID(TRIM(x),ROW(INDIRECT("1:1024")),1)=" ",
ROW(INDIRECT("1:1024"))),5))

And, no, I'm not going to go check your web page. If you want
help in the newsgroups, post all relevant details in the
newsgroup.

 
Reply With Quote
 
swatsp0p
Guest
Posts: n/a
 
      16th Aug 2005

Mykaltx: You also shouldn't multipost. This topic was also addressed
in another thread.


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=396152

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
to give two inner joins and left join in a query. Please give an e Join Microsoft Access 1 24th Mar 2009 05:34 PM
Managed pointers to pointers Mark Ingram Microsoft VC .NET 3 20th Nov 2006 02:42 PM
give route to eliminate the Office orblems, so, I will give sug.. =?Utf-8?B?bmVnYXRpdmUgYW5zd2VyLCBubyBoYXZlIG5hbWUg Microsoft Outlook BCM 0 29th Jul 2006 01:05 PM
Give RELEVANT responses to questions. DO NOT give usless list =?Utf-8?B?cG1hcnRpbg==?= Microsoft Excel Worksheet Functions 2 6th Jul 2006 06:08 PM
pointers-to-pointers and class children Peteroid Microsoft VC .NET 2 3rd Jan 2005 06:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:04 AM.