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
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

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?
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,019
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
See if this works

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

M.
 

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).
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,092
Messages
5,835,344
Members
430,351
Latest member
ddalton

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