Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Using offset within a formula dynamically

Hello.

What I am trying to do is return a value that is in column G *IF*
column A and column B meet my criteria. Column G is a quantity value,
and column A is a Vehicle Type and column B is Job Type.

So, if colA = Car and colB = Tires, then return the quantity of work
needed to be done.

Sounds like a simple problem. The thing is, I need to find the instance
in which the two factors are met (Car and Tires) and then return the
quantity within that row. I never know which row it may be however...
essentially, Id like to offset from the row position that the two
criteria are met.

Possible?

Sorry if this is confusing... but trust me, its more confusing here in
person.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Using offset within a formula dynamically

Is there some way i can build in the =ROW function to find the location
of multiple criteria?

S Davis wrote:
Hello.

What I am trying to do is return a value that is in column G *IF*
column A and column B meet my criteria. Column G is a quantity value,
and column A is a Vehicle Type and column B is Job Type.

So, if colA = Car and colB = Tires, then return the quantity of work
needed to be done.

Sounds like a simple problem. The thing is, I need to find the instance
in which the two factors are met (Car and Tires) and then return the
quantity within that row. I never know which row it may be however...
essentially, Id like to offset from the row position that the two
criteria are met.

Possible?

Sorry if this is confusing... but trust me, its more confusing here in
person.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default Using offset within a formula dynamically

One way

=INDEX(G2:G100,MATCH(1,(A2:A100="car")*(B2:B100="T ires"),0))

It needs to be entered with ctrl + shift & enter

replace car and Tires with cell references and put the criteria in cells
instead, that way you don't have to edit the formula when you change
criteria
--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com


"S Davis" wrote in message
ups.com...
Is there some way i can build in the =ROW function to find the location
of multiple criteria?

S Davis wrote:
Hello.

What I am trying to do is return a value that is in column G *IF*
column A and column B meet my criteria. Column G is a quantity value,
and column A is a Vehicle Type and column B is Job Type.

So, if colA = Car and colB = Tires, then return the quantity of work
needed to be done.

Sounds like a simple problem. The thing is, I need to find the instance
in which the two factors are met (Car and Tires) and then return the
quantity within that row. I never know which row it may be however...
essentially, Id like to offset from the row position that the two
criteria are met.

Possible?

Sorry if this is confusing... but trust me, its more confusing here in
person.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Using offset within a formula dynamically


Something like this

Change Enter your sum or formula here !! to calculations

=IF(AND(A2="Car",B2="Tires"),"Enter your sum or formula here !!","")

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=565809

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Using offset within a formula dynamically

Use SUMPRODUCT, like this:
=SUMPRODUCT((A1:A100="Car")*(B1:B100="Tires")*G1:G 100)

See this link to learn all about SUMPRODUCT:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Hope this helps,

Hutch

"S Davis" wrote:

Hello.

What I am trying to do is return a value that is in column G *IF*
column A and column B meet my criteria. Column G is a quantity value,
and column A is a Vehicle Type and column B is Job Type.

So, if colA = Car and colB = Tires, then return the quantity of work
needed to be done.

Sounds like a simple problem. The thing is, I need to find the instance
in which the two factors are met (Car and Tires) and then return the
quantity within that row. I never know which row it may be however...
essentially, Id like to offset from the row position that the two
criteria are met.

Possible?

Sorry if this is confusing... but trust me, its more confusing here in
person.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Using offset within a formula dynamically

Thank you so incredibly much Peo!!!!! I literally cheered here in my
office... almost had nothing to show for the day :)

Truly, thanks!

-Sean

PS - here is the final formula for anyone's future reference - just
change out the named ranges to your own:

=IF(ISERROR((OFFSET(INDEX(STD_Obj_ManufactModel,MA TCH(1,(STD_Obj_ManufactModel=$AU9)*(STD_Desc2=$AV9 ),0)),0,6)*K9)),0,(OFFSET(INDEX(STD_Obj_ManufactMo del,MATCH(1,(STD_Obj_ManufactModel=$AU9)*(STD_Desc 2=$AV9),0)),0,6)*K9))

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 138
Default Using offset within a formula dynamically

Alright. Let's take this a step further.

What the formula below is doing is looking up where in a list two
values are met in the same row, and then offsetting out to return a
third number within that row (and then multiply it by a value).
Basically, its saying 'when there is a certain type of vehicle and a
certain type of repair, display the quantity of parts needed for that
repair'.

The thing is, there are many times within the reference data that a
certain vehicle and repair are displayed. This is because every part
required, which has a quantity value, says the vehicle and repair type
for that part. Obviously most repairs require more than one part.

So what I need to do is find EVERY instance that vehicle and repair
match up, and then return the sum of all parts (qty) required.
Essentially:

Part1...Car 1...Repair1...Qty
Part2...Car 1...Repair1...Qty
Part3...Car 1...Repair1...Qty
Part4...Car 2...Repair1...Qty
Part5...Car 3...Repair2...Qty

What I want to do is return the total QTY for all Car1 with Repair1.
The result will be the total number of parts required, as this figure
will be multiplied by the forecast amount of workload (ie. the number
of times the repair is expected to happen).

Within the formula below, what's inside the offset brackets returns the
Qty - Qty is 6 columns out within the list I have. K9 is the workload
figure.

Thanks:)

S Davis wrote:


=((OFFSET(INDEX(Car1,MATCH(1,(Car1=$AU9)*(Repair1= $AV9),0)),0,6)*K9))


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
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
Help with Offset formula Ken G. Excel Discussion (Misc queries) 2 May 26th 06 02:32 AM
Offset formula on different worksheet edwardpestian Excel Worksheet Functions 3 May 6th 06 01:07 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 02:04 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"