+ Reply to Thread
Results 1 to 4 of 4

Writing and Calculating Quotes

  1. #1
    Registered User
    Join Date
    09-28-2020
    Location
    NY
    MS-Off Ver
    2010
    Posts
    2

    Writing and Calculating Quotes

    I am trying to use Excel to build quotes for customers. I did this a long time ago in Quatro Pro, but I am having difficulty doing it I Excel.

    I am a home builder and have various standard models of homes.

    • When I do quotes, I list all the specifications included.
    • I have a worksheet with a table listing all the specifications available. Each line (record) contains columns listing the description and formulas for calculating the quantity and costs. I print out the first few columns as a PDF for the quote presented to the customer.
    • I need to pull the appropriate lines from the data table into my new quote worksheet that pertain to the particular model that I am quoting. From there, I begin to customize it, but that is the nest step I will address after I get step one figured out.

    I accomplished this before by having a column for each model and a simple ‘X’ in the lines that are appropriate. It was a long time ago, but I think I had a dialog box choose the model and a macro that would go find all the appropriate lines for the particular model, copy them and paste into the new quote worksheet. All the formulas would remain to calculate properly.

    In Excel, I tried using an advanced filer, but it only returns values and not formulas. Also, I have to go through too many steps each time: Data>Advanced Filter>Select Copy to Another Locaction, List Range, Criteria Range and Copy to. It is too cumbersome and time consuming and easier to have errors by selecting the wrong range.

    Is there a way to do this in Excel?

    Thanks in advance for any help.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Writing and Calculating Quotes

    Please read the yellow banner at the top of this page on how to attach a file.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-28-2020
    Location
    NY
    MS-Off Ver
    2010
    Posts
    2

    Re: Writing and Calculating Quotes

    Here are two sample files; one for the data table and one for the new quote. I want to keep them separate because the data such as prices need to be updated from time to time and want just one file to update.

    If you got to the "House_Quote_SAMPLE" worksheet, you will see a drop down list at cell A1. You can choose one and then run "Advanced Filter" and use:

    List Range: Specifications_SAMPLE.xlsx!StdSpecs
    Criteria Range: Sheet1!Criteria
    Copt To: Sheet1!$B$1:$K$1

    You will see all the appropriate specs fill in for that model.

    This is NOT the best way to do it because:
    • It is too complicated with too many steps involved and too many things to specify each time
    • Formulas are lost
    • The drop down list needs the list to exist in the current file rather than in the Specifications file. The drop down list text is too small anyway.
    •

    I hope this is understandable. It is difficult for me to explain this in writing.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Writing and Calculating Quotes

    I would suggest keeping the specifications and quote on different sheets rather than in separate workbooks.
    Note that in the attached file the specifications are on Sheet3 which has been hidden for aesthetics/privacy.
    A helper column (M) is added to Sheet3 and is populated using: =IF(COUNTA(A4:B4)=2,"Both",INDEX(A$1:B$1,MATCH("X",A4:B4,0)))
    On Sheet1 cell C2 is populated using: ="Base Model: "&A1
    Cells E2:K2 are populated using: =INDEX(Sheet3!E4:E5,MATCH($A1,Sheet3!$M4:$M5,0))
    Cells B4:K28 are populated using: =IFERROR(INDEX(Sheet3!C$7:C$31,AGGREGATE(15,6,(ROW($C$7:$C$31)-ROW($C$6))/((Sheet3!$M$7:$M$31=$A$1)+(Sheet3!$M$7:$M$31="Both")),ROWS($A$1:$A1))),"")
    The range B2:K28 has conditional formatting applied to hide zero values: Cell Value = 0 (font set to white)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Names.Add method creates named range using quotes - Need to remove quotes
    By AstToTheRegionalMGR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2016, 11:48 PM
  2. Writing to a text file from excel VBA without the quotes?
    By RustyNail in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-11-2016, 08:32 AM
  3. Replies: 0
    Last Post: 06-03-2014, 01:12 AM
  4. [SOLVED] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  5. Writing Literal Quotes to a Text File
    By RamShear in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2010, 05:31 PM
  6. help in writing a VBA code for calculating percentage
    By rajagopalanpb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2009, 11:11 AM
  7. Writing text string with imbedded quotes to a text stream
    By John Wirt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2005, 09:05 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