If condition meet

maabbas

Board Regular
Joined
Aug 11, 2011
Messages
201
=IF(A131=Yield!A1:A1020,(Sun!B131+Sun!P131)/Sun!K131,Sun!B131/Sun!K131)

Any help, I am not getting the right calculation
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

maabbas

Board Regular
Joined
Aug 11, 2011
Messages
201
try entering with CRTL SHIFT enter

Sorry I posted the wrong formula, please check the below formula, I tried using the CRTL SHIFT ENTER, but formula only calcuting right the first cell of range

=IF(Yield!A757:A1020=Sun!A131,Sun!B131/Sun!K131,IF(Yield!A1:A756=Sun!A131,(Sun!B131+Sun!P131)/Sun!K131,0))
 

maabbas

Board Regular
Joined
Aug 11, 2011
Messages
201
Sorry I posted the wrong formula, please check the below formula, I tried using the CRTL SHIFT ENTER, but formula only calcuting right the first cell of range

=IF(Yield!A757:A1020=Sun!A131,Sun!B131/Sun!K131,IF(Yield!A1:A756=Sun!A131,(Sun!B131+Sun!P131)/Sun!K131,0))

Here is more information, what I want, I have 7 Sheets from Monday to Sunday and a yield Sheet where we have product code and its standard yield (A1:A756), there are some product which we calculate yield as (finished goods/Inbound) and some are (finished goods+rejects/inbound) on yield sheet I separated both product from A1:A756 and A757:A1020. I am looking formula if I enter the product code in any day (Monday to Friday) sheet it will calculate the yield according to range
 

jamtay317

Well-known Member
Joined
Mar 6, 2013
Messages
769

ADVERTISEMENT

this is due to cell refrances, can you show us a sample worksheet?
 

maabbas

Board Regular
Joined
Aug 11, 2011
Messages
201
this is due to cell refrances, can you show us a sample worksheet?

YIELD SHEET

236153%
64330176%
65230176%
60715148%
64230176%
A1397180%
65530161%
63030150%
64630161%
60113160%
60325147%
1044115%
24561156%
65730161%
64830161%
60108147%
60315145%
60116139%
20203120%
60004149%
33160155%
60243193%
60249193%
60216139%
60008147%
6900075%
58208150%
3762179%

DAILY SHEET

ProductPoundsAverageStandardStandardPaidStd. PPHDownUp-TimeUp-TimeRawRawYieldStandardYieldRejectReject
CodeProducedlbs/Hrlbs/HrHrsHrsPaidTimeHrsPPHlbslbs/Hr%YieldDifferencelbs%
2020350000 0.00 0.00% 0.000500000.00%120.00%-120.00%2004.00%
23650000 0.00 0.00% 0.00050000104.00%153.00%-49.00%2004.00%
0 0.00 0.00% 0.000 00.00%0.00%0.00% 0.00%

<colgroup><col span="2"><col><col><col span="4"><col><col span="2"><col><col span="2"><col><col span="2"></colgroup><tbody>
</tbody>



<colgroup><col><col></colgroup><tbody>
</tbody>
 

jamtay317

Well-known Member
Joined
Mar 6, 2013
Messages
769

ADVERTISEMENT

are the product codes ever the same?
 

maabbas

Board Regular
Joined
Aug 11, 2011
Messages
201
See if this works

=(B131+ISNUMBER(MATCH($A131,Yield!$A$1:$A$756,0))*$P131)/$K131

M.

its working but only for range A1 to A756, I have more product from range A757 to A1020 where I want formula to calculate Pound produce/Raw(B131/K131).
 

Watch MrExcel Video

Forum statistics

Threads
1,122,536
Messages
5,596,748
Members
414,095
Latest member
George53

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
Top