Stumped... Need Help with formula...

Mykro

Active Member
Joined
Oct 17, 2002
Messages
337
I'm having a problem getting this formula correct..

=IF(AND(B1="SF",B2:B100=N12),B1,IF(AND(C1="LF",C2:C100=N12),C1,))

The result returned is 0, It should return "LF"

Any help would be greatly appreciated...

Thanks...

Michael
 
Last edited:
If you replace the current input form which the current output is created, the output will change accordingly.

Hello Aladin,

There are two #VALUE ! errors...

There are two worksheets... SUMMARY! and WORKUP!
SUMMARY is created by default from Autocad... WORKUP is where I figure my pricing..

Here is the SUMMARY worksheet ...
.


Cell Formulas
RangeFormula
A1Description
A26in A Curb
A34in Sidewalk
A4Lgt Standard
A54in Expansion Paper w_Chalk
A64in Expansion Paper w_Chalk
A74in Expansion Paper w_Chalk
A84in Expansion Paper w_Chalk
A94in Expansion Paper w_Chalk
A104in Expansion Paper w_Chalk
B1SF
B26439.682
B3100.585
B40.401
C1LF
C2201.151
C391.782
C51.931
C61.888
C71.974
C82.18
C92.046
C101.943
D1EA
D21
D31
D414
D51
D61
D71
D81
D91
D101

.

Here is the WORKUP worksheet...
.


Excel 2013/2016
ABCD
1No.DescriptionQtyUnits
216in A Curb#VALUE!#VALUE!
324in Sidewalk
43Lgt Standard
544in Expansion Paper w_Chalk
Workup
Cell Formulas
RangeFormula
C2=SUMPRODUCT(INDEX(Summary!B2:D125,0,MATCH($D2,Summary!B1:D1,0)),--(SUBSTITUTE(Summary!$A$2:$A$125,CHAR(160),"")=SUBSTITUTE($B2,CHAR(160),"")))
D2=LOOKUP(9.99999999999999E+307,INDEX(Summary!B2:D125,MATCH(SUBSTITUTE($B2,CHAR(160),""),SUBSTITUTE(Summary!A2:A125,CHAR(160),""),0),0),Summary!$B$1:$D$1)
Named Ranges
NameRefers ToCells
Summary=Summary!$A$1:$D$10

.
.
Here are the formulas ...
.
" =SUMPRODUCT(INDEX(Summary!B2:D125,0,MATCH($D2,Summary!B1:D1,0)),--(SUBSTITUTE(Summary!$A$2:$A$125,CHAR(160),"")=SUBSTITUTE($B2,CHAR(160),""))) "

"=LOOKUP(9.99999999999999E+307,INDEX(Summary!B2:D125,MATCH(SUBSTITUTE($B2,CHAR(160),""),SUBSTITUTE(Summary!A2:A125,CHAR(160),""),0),0),Summary!$B$1:$D$1) "

Michael
 
Last edited:
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try not to quote long posts, also avoid posting formula instances.

Earlier input gives the impression that a description is either just SF or just LF or just EA. That seems to be false conclusion, right?
 
Upvote 0
Try not to quote long posts, also avoid posting formula instances.

Earlier input gives the impression that a description is either just SF or just LF or just EA. That seems to be false conclusion, right?

Aladin,

Sorry about the long post.. HTML Maker posted more than I thought.. I must have made the wrong option...

Yes.. False...
There is only the three criteria.. SF = Square Feet, LF = Lineal Feet, EA = Each. To be priced by: Area = SF, Length = LF, or by the Count = EA.

Attached on the top section is the data straight from Autocad.. Below is how it needs to look,the way I have it formatted... Also..When the file is created by Autocad it brings everything in with an apostrophe before it including numbers.. ex 'Hello, 'Goodbye, '12, '23435 etc.. Numbers are seen as text.. You can't create a template for the data either.. Autocad creates a new excel file each time data is extracted...


Cell Formulas
RangeFormula
A1Layer
A26in A Curb
A34in Sidewalk
A4Lgt Standard
A54in Expansion Paper w_Chalk
A64in Expansion Paper w_Chalk
A74in Expansion Paper w_Chalk
A84in Expansion Paper w_Chalk
A94in Expansion Paper w_Chalk
A104in Expansion Paper w_Chalk
A13Description
A146in A Curb
A154in Sidewalk
A16Lgt Standard
A174in Expansion Paper w_Chalk
B1Area
B26439.682
B3100.585
B40.401
B13SF
B15100.585
C1Length
C2201.151
C391.782
C51.931
C61.888
C71.974
C82.180
C92.046
C101.943
C13LF
C14201.151
C1711.96
D1Count
D21
D31
D414
D51
D61
D71
D81
D91
D101
D13EA
D1614
 
Last edited:
Upvote 0
What is input here (sample of data) and what is output/result? (Forget about AutoCAD that I don't know anything about.)
 
Upvote 0
Input/Sample Data is: A1:A10, Worksheet name: Summary!

Output/Desired Result is: A13:D17, Worksheet name: Workup!
 
Last edited:
Upvote 0
In USA, Concrete Curb is estimated by length or lineal foot, LF. Concrete floors, Sidewalks, Concrete Paving in General is estimated by Area, Square feet or SF. Smaller concrete items are estimated by a single Count or lump sum price, which in my case by Each or EA.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top