+ Reply to Thread
Results 1 to 23 of 23

Referencing Cells to correspond with their rows for autofill

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Referencing Cells to correspond with their rows for autofill

    To be more specific,

    I work with highway signs, and they all have codes. the codes are priced according to their size, sheeting, and aluminum structure.

    so codes can be something like : GS-4, IB-12, RB-21, and their sheeting could be: 231, 241, 245S, 420P, and their price is dependent with the size, materials, and quantity ordered. So a quantity of 3 or less of a flat sheet of aluminum, with HIP reflectivity sign would be a 231, where 4 or more of that same sign would be 241.

    A workbook has the contracted price, the cells are in order. The order sheet I use is separate from this. But I have to look for each sign for all the info. How can I get the one cell to recognize the Code, along with the Quantity ordered?

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Referencing Cells to correspond with their rows for autofill

    Uploading a sample workbook would make the question a lot more clear. I think this should be easy to take care of with an example workbook.

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    I'll do that! Give me a moment...

  4. #4
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    Essentially, when in Sign_Orders, when you enter the sign Code Column, i would like at least the Unit Price to autofill from the Contract workbook
    Attached Files Attached Files

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    See the attached. Both WB need to be open for this to work. There are drop downs in column A of the orders WB. The formula is in column I.
    Last edited by FlameRetired; 02-23-2015 at 05:37 PM.

  6. #6
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    Very well done! Now Why can't I make it work on my end when I try to duplicate it..?!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    Can you identify where things go wrong? Check the file name referenced in the formula. Is the file you are now

    referencing the same as the one in the formula? If not it will need to be changed in both SUMPRODUCT functions.
    Last edited by FlameRetired; 02-23-2015 at 07:59 PM.

  8. #8
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    I took yours as a guideline, and changed everything in the actual order sheet to correspond to rows 3-787 in the contract sheet. But I don't get the dropdown pick box in my column A, and the column I doesn't fill in with a dollar value, but shows #value!. I don't know if the files have to be in a certain place in the C drive, but I'm referencing to my desktop at the moment.

    Sometimes when I go through the formula, then press enter, it'll open a dialog box wanting me to select the excel file, but always comes back with the #value! error

    The current formula:

    =SUMPRODUCT(($E194<=3)*($A194='C:\Users\lhradeck\Desktop\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!B$3:B$787)*('C:\Users\lhradeck\Desktop\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!H$3:H$787))+SUMPRODUCT(($E194>=4)*($A194='C:\Users\lhradeck\Desktop\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!$B$3:$B$787)*('C:\Users\lhradeck\Desktop\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!$J$3:$J$787))
    Last edited by NINmh; 02-24-2015 at 11:15 AM.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    The drop downs in column A have to be made. I only made them on the uploaded WB down to

    about row 20 of Destination A sheet. I wasn't sure how far you wanted to take them down.

    The formula you show above references row 194...that is $E194 and $A194. What row is this formula

    itself in?

    Edit By the way the Data Validation list for those drop downs is in column

    T sheet Destination A of the Orders workbook. All I did was copy / paste them from the Contract workbook.
    Last edited by FlameRetired; 02-24-2015 at 02:39 PM. Reason: afterthoughts

  10. #10
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    My actual contract workbook has about 787 signs in it, 17 pages in Excel. I only sent you the basic idea, not sure the legalities about sending actual contract prices, etc..

    To start on the left, the pick list is created buy referencing column T? is this an important part of making the formula work, or just aesthetics?

    The important question I had for you was in relation to the file locations. You saved yours way in the C drive, where mine is on a network, it doesn't have to be necessarily..

    It would be great if I can get everything to autofill! but if i can get the prices, it would save me a lot of time! second would be the 'spec'.

    I'll keep fiddling trying to make it work, but please help otherwise

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    Quote Originally Posted by NINmh View Post
    To start on the left, the pick list is created buy referencing column T? is this an important part of making the formula work, or just aesthetics?
    It is an important part of making the formula work...not aesthetics. It is the list that populates those drop down lists. Would you like help building the drop downs?

    The important question I had for you was in relation to the file locations. You saved yours way in the C drive, where mine is on a network, it doesn't have to be necessarily..
    As the formula is typed Excel apparently uses the location of the files as Excel stored them on my computer at the time.

    Just replace the references using the file you use. I simply select / highlight what I want to replace then

    click and drag on the appropriate ranges in whatever file I want to reference. My file references will be replaced by yours.

    The operation is tedious and prone to errors; I don't know another way around it.


    It would be great if I can get everything to autofill! but if i can get the prices, it would save me a lot of time! second would be the 'spec'.

    I'll keep fiddling trying to make it work, but please help otherwise
    Once the formulas are taken care of would be the time to talk about the auto-fill part. It sounds like you could benefit from using a table if I have interpreted correctly what you mean by auto-fill.

    I don't know what the limitations if any of tables are....you are going to have a large file and I have never worked tables into anything much larger that 200-300 rows. I need to study up on that part.

    On the other hand perhaps filling the formula down far enough to handle future entries would do what you want.

    Has any of this helped?

  12. #12
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    Yes, help please! I can't seem to get it to work

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    I'll need to start from the beginning in order to understand where the problems start.

    In column A of the Orders WB is where the codes go. I used drop downs to avoid typos and for convenience. This becomes impractical if the list of codes is too long. You mentioned 787 signs. That would be 787 codes. Do I have that correct?
    Last edited by FlameRetired; 02-26-2015 at 06:34 PM.

  14. #14
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    The sign codes go from Row 3 to Row 787.

    I can eliminate some of them from this, if it helps, since some signs are unique, and therefore have no specific price to them ( think of leaving a community on the highway, and a green sign tells you how far the next community is)

    where the majority of signs in this list are a standard, some with different sizes ( think of stop signs, yield signs - these are a standard design, but have a few sizes to choose from ) Where a deer crossing sign, or a route shield would be a standard design, and only one size.

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    What I need to ask is how do you wish to enter those codes into column A? I have made an experimental list of

    random "codes"......787 of them....sorted them and assigned them to some drop downs. Would you like me to upload

    the experiment so you can see if this is practical. The consideration here is that the codes in column A must be

    exact
    matches to the codes in the contract WB. You'll need these to get the correct prices.

    Would you like me to upload?

  16. #16
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    Sorry if I don't respond quickly, this is an at-work project, which I don't take home with me.

    I did make the list work, I first copied all 787 rows of Codes into the Workbook I put my orders into. I 'Defined Name', then 'Data Validation' for the pick list, made it work for all column A. So that's in place. I did read that you can put an error message if a person were to enter the wrong code, I will look into that after I get the rest going smooth!

    Where I have all the problems, is with the price referencing.

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    Returning prices from the wrong column / wrong row on the contract WB?

  18. #18
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    Well, I've tweeked the formula you sent, but now it comes as '#N/A' with a 'Value Not Available Error'

    Here is the formula I'm using:
    =SUMPRODUCT(($E265<4)*($A265='G:\Sign\Traffic Guidance\Sign Prices & Costs\AA Sign Purchase Contracts\2013 Sign Contract\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!B$3:B$10)*('G:\Sign\Traffic Guidance\Sign Prices & Costs\AA Sign Purchase Contracts\2013 Sign Contract\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!H$3:H$787))+SUMPRODUCT(($E265>3)*($A265='G:\Sign\Traffic Guidance\Sign Prices & Costs\AA Sign Purchase Contracts\2013 Sign Contract\[Yr 2010 Contract last rev May-13.xlsx]Sign Index Prices'!B$3:B$10)*('G:\Sign\Traffic Guidance\Sign Prices & Costs\AA Sign Purchase Contracts\2013 Sign Contract\[Yr 2010 Contract last rev May-13s]Sign Index Prices'!J$3:J$787))

  19. #19
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    are spaces in the file name/location a problem? I know sometimes they can be!

  20. #20
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Referencing Cells to correspond with their rows for autofill

    I don't see anything wrong on the spacing as long as those are parts of the actual path / filenames.

    I did notice some cell references and relative addressing that are potential problems. B$3:B$10 for example would best be $B$3:$B$10. Likewise J$3:J$787 should be $J$3:$J$787. There are other ranges that could stand to be set absolute like those.

    However relative / absolute addressing such as $E265 needs to stay the same. Those rows need to change as you copy down.

    What is the cell address that you are entering this formula into? That address $E265 in the above formula I'm wondering about. The formulas start in row 6. In that case address $E265 would be $E6. If you are entering the above formula in row 6 that definitely would cause problems.

    Beyond that I can think of nothing else.
    Last edited by FlameRetired; 02-27-2015 at 04:15 PM.

  21. #21
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    I believe i see what the problem is? In the workbooks I sent you, the prices were typed in, where in my contract sheet i'm referencing, there's a formula to reference another sheet & cell in it's workbook.

    Is there a way around that, or do I have to change the method of how the prices are entered in the Contract sheet?

  22. #22
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    Nope, not the problem. I changed the 3 or less to typed in values, and left the 4 or more as it was.

    I think it just has a problem with the size of the reference columns?

    This is what I got to work:

    =SUMPRODUCT(($E265<=3)*($A265='C:\Users\lhradeck\Desktop\[Yr2010Contract.xlsx]S.I. Prices by Code'!$B$3:$B$14)*('C:\Users\lhradeck\Desktop\[Yr2010Contract.xlsx]S.I. Prices by Code'!$H$3:$H$14))+SUMPRODUCT(($E265>3)*($A265='C:\Users\lhradeck\Desktop\[Yr2010Contract.xlsx]S.I. Prices by Code'!$B$3:$B$14)*('C:\Users\lhradeck\Desktop\[Yr2010Contract.xlsx]S.I. Prices by Code'!$J$3:$J$14))

    If i change the 14's to anything higher, it gives me the #Ref! error. Seems as though the referencing can't be any more than 12 at a time? seems small..
    Last edited by NINmh; 02-27-2015 at 05:46 PM.

  23. #23
    Registered User
    Join Date
    05-22-2014
    Posts
    14

    Re: Referencing Cells to correspond with their rows for autofill

    =VLOOKUP($D2,[Contract.xlsx]Sheet2!$A:$C,2,0)

    Is this a formula to use? how would this work?

+ 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] Indicate which cells correspond to a drop down selection.
    By john dalton in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2014, 08:34 AM
  2. Want to autofill cells with formulas in a range with a dynamic numbe of rows
    By hgeo24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 05:59 PM
  3. Multiple timestamps that correspond to different cells
    By pdale18 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2013, 01:41 AM
  4. Replies: 1
    Last Post: 12-03-2012, 08:14 AM
  5. Excel 2007 : data referencing and autofill
    By firstdecimal in forum Excel General
    Replies: 0
    Last Post: 07-15-2011, 07:22 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