Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default circular reference where sumif and vlookup overlap

I hit a problem in a 3 page spreadsheet used to calculate material movement:
The first page lists material to be hauled, with a name, volume, and
distance to a central point.
The second page lists places to fill with a name, volume, and distance to a
central point.
The third page works out a movement sequence based on equipment available.
The sequence is entered by entering the name of material to be hauled, the
name of the place to fill, and a maximum amount to haul at that point in the
sequence. There are 64 columns tied up in determining if there is enough
equipment to haul the desired amount, how many hours will be required, then
calculating how much will actually be hauled. The first row is
straightforward. On the second and subsequent rows I need to allow for the
fact that a part of each 'block' may have been hauled or filled previously in
the sequence. So, I start with a VLOOKUP comparing the designated name to
the first page for material originally available, then I use a SUMIF to
calculate how much has already been hauled under that name. When I subtract
the SUMIF from the VLOOKUP I get a circular reference error. I am handling
this by Iterating at the moment (the numbers don't change for different
numbers of iterations), but ultimately I will be sharing the workbook and
don't like to have 'tricks' that can cause problems for errors.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default circular reference where sumif and vlookup overlap

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).
--
John C


"mining north" wrote:

I hit a problem in a 3 page spreadsheet used to calculate material movement:
The first page lists material to be hauled, with a name, volume, and
distance to a central point.
The second page lists places to fill with a name, volume, and distance to a
central point.
The third page works out a movement sequence based on equipment available.
The sequence is entered by entering the name of material to be hauled, the
name of the place to fill, and a maximum amount to haul at that point in the
sequence. There are 64 columns tied up in determining if there is enough
equipment to haul the desired amount, how many hours will be required, then
calculating how much will actually be hauled. The first row is
straightforward. On the second and subsequent rows I need to allow for the
fact that a part of each 'block' may have been hauled or filled previously in
the sequence. So, I start with a VLOOKUP comparing the designated name to
the first page for material originally available, then I use a SUMIF to
calculate how much has already been hauled under that name. When I subtract
the SUMIF from the VLOOKUP I get a circular reference error. I am handling
this by Iterating at the moment (the numbers don't change for different
numbers of iterations), but ultimately I will be sharing the workbook and
don't like to have 'tricks' that can cause problems for errors.

Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default circular reference where sumif and vlookup overlap

It's fairly involved. How would I post it?

"John C" wrote:

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).
--
John C


"mining north" wrote:

I hit a problem in a 3 page spreadsheet used to calculate material movement:
The first page lists material to be hauled, with a name, volume, and
distance to a central point.
The second page lists places to fill with a name, volume, and distance to a
central point.
The third page works out a movement sequence based on equipment available.
The sequence is entered by entering the name of material to be hauled, the
name of the place to fill, and a maximum amount to haul at that point in the
sequence. There are 64 columns tied up in determining if there is enough
equipment to haul the desired amount, how many hours will be required, then
calculating how much will actually be hauled. The first row is
straightforward. On the second and subsequent rows I need to allow for the
fact that a part of each 'block' may have been hauled or filled previously in
the sequence. So, I start with a VLOOKUP comparing the designated name to
the first page for material originally available, then I use a SUMIF to
calculate how much has already been hauled under that name. When I subtract
the SUMIF from the VLOOKUP I get a circular reference error. I am handling
this by Iterating at the moment (the numbers don't change for different
numbers of iterations), but ultimately I will be sharing the workbook and
don't like to have 'tricks' that can cause problems for errors.

Any suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default circular reference where sumif and vlookup overlap

There are several websites that allow free hosting of files. I have not used
any, but have seen other links in these help pages.

One such website that I have seen used a lot is http://www.mediafire.com

Or you could e-mail it to me at

--
John C


"mining north" wrote:

It's fairly involved. How would I post it?

"John C" wrote:

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).
--
John C


"mining north" wrote:

I hit a problem in a 3 page spreadsheet used to calculate material movement:
The first page lists material to be hauled, with a name, volume, and
distance to a central point.
The second page lists places to fill with a name, volume, and distance to a
central point.
The third page works out a movement sequence based on equipment available.
The sequence is entered by entering the name of material to be hauled, the
name of the place to fill, and a maximum amount to haul at that point in the
sequence. There are 64 columns tied up in determining if there is enough
equipment to haul the desired amount, how many hours will be required, then
calculating how much will actually be hauled. The first row is
straightforward. On the second and subsequent rows I need to allow for the
fact that a part of each 'block' may have been hauled or filled previously in
the sequence. So, I start with a VLOOKUP comparing the designated name to
the first page for material originally available, then I use a SUMIF to
calculate how much has already been hauled under that name. When I subtract
the SUMIF from the VLOOKUP I get a circular reference error. I am handling
this by Iterating at the moment (the numbers don't change for different
numbers of iterations), but ultimately I will be sharing the workbook and
don't like to have 'tricks' that can cause problems for errors.

Any suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default circular reference where sumif and vlookup overlap

Please do not post a file to the newsgroup.

If you want to upload a copy of your workbook to one of the file hosting sites
we can download to see what could be preventing CF from working.

http://www.freefilehosting.net/
http://savefile.com/

When you have uploaded to that site, post the URL so we could download should we
choose.


Gord Dibben MS Excel MVP

On Fri, 11 Jul 2008 13:51:01 -0700, John C <johnc@stateofdenial wrote:

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default circular reference where sumif and vlookup overlap

Thanks for the other choices, though to be fair, I never asked him to post to
newsgroup.
--
John C


"Gord Dibben" wrote:

Please do not post a file to the newsgroup.

If you want to upload a copy of your workbook to one of the file hosting sites
we can download to see what could be preventing CF from working.

http://www.freefilehosting.net/
http://savefile.com/

When you have uploaded to that site, post the URL so we could download should we
choose.


Gord Dibben MS Excel MVP

On Fri, 11 Jul 2008 13:51:01 -0700, John C <johnc@stateofdenial wrote:

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default circular reference where sumif and vlookup overlap

It's all new to me. The file is at:
http://www.freefilehosting.net/download/3jeg7
Any advice is welcome. I'm following through with Excel set on iteration
for the time being.


"John C" wrote:

Thanks for the other choices, though to be fair, I never asked him to post to
newsgroup.
--
John C


"Gord Dibben" wrote:

Please do not post a file to the newsgroup.

If you want to upload a copy of your workbook to one of the file hosting sites
we can download to see what could be preventing CF from working.

http://www.freefilehosting.net/
http://savefile.com/

When you have uploaded to that site, post the URL so we could download should we
choose.


Gord Dibben MS Excel MVP

On Fri, 11 Jul 2008 13:51:01 -0700, John C <johnc@stateofdenial wrote:

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default circular reference where sumif and vlookup overlap

Took me a little while longer to figure out than I planned, but I did figure
it out.

The cells that are creating the problems, initially, are the following cells:
AY14, BD14, BI14, BN14, and BS14.
In order to fix the circular reference error, I had to change up the
formulas in these cells just a tad, along with the the subsequent cells in
those columns.
The corrections below should do the trick. NOTE: I am giving 2 formulas for
each column, 1 for row 14, and 1 for row 15, the formulas in row 15 should be
edit--fill--down as needed.
AY14: =$T$6-SUM(Z$14:Z14)
AY15: =$T$6-SUM(Z$14:Z15)-BC14
BD14: =$T$7-SUM(AE$14:AE14)
BD15: =$T$7-SUM(AE$14:AE15)-BH14
BI14: =$V$4-SUM(AJ$14:AJ14)
BI15: =$V$4-SUM(AJ$14:AJ15)-BM14
BN14: =+$V$5-SUM(AO$14:AO14)
BN15: =+$V$5-SUM(AO$14:AO15)-BR14
BS14: =$V$6-SUM(AT$14:AT14)
BS15: =$V$6-SUM(AT$14:AT15)-BW14

The issue with the way you had it is that cells in row 14 were tabulating
information from rows 14 through 63, which fed into column BX which fed
information back into columns G & H.

This should also give an accurate representation of running balance of
available hours on the latest lines.

Hope this helps you!



--
John C


"mining north" wrote:

It's all new to me. The file is at:
http://www.freefilehosting.net/download/3jeg7
Any advice is welcome. I'm following through with Excel set on iteration
for the time being.


"John C" wrote:

Thanks for the other choices, though to be fair, I never asked him to post to
newsgroup.
--
John C


"Gord Dibben" wrote:

Please do not post a file to the newsgroup.

If you want to upload a copy of your workbook to one of the file hosting sites
we can download to see what could be preventing CF from working.

http://www.freefilehosting.net/
http://savefile.com/

When you have uploaded to that site, post the URL so we could download should we
choose.


Gord Dibben MS Excel MVP

On Fri, 11 Jul 2008 13:51:01 -0700, John C <johnc@stateofdenial wrote:

This appears to be a very involved spreadsheet. I think I would need to look
more closely at your data structure. Can you post it? or email it? (with I
assume, dummy data).


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Circular Reference - Why? Alan Smith Excel Discussion (Misc queries) 7 January 3rd 08 04:24 PM
circular reference using vlookup clarknv Excel Worksheet Functions 1 February 28th 07 05:00 PM
Circular Reference Saintsman Excel Worksheet Functions 5 June 5th 06 06:39 PM
Circular Reference nastech Excel Discussion (Misc queries) 1 April 27th 06 12:54 AM
Ho do I do this without a circular reference? mmednick Excel Discussion (Misc queries) 6 February 2nd 06 07:42 PM


All times are GMT +1. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"