Forum

Notifications
Clear all

If+Calculation

5 Posts
3 Users
0 Reactions
114 Views
(@ahsiraj70gmail-com)
Posts: 3
Active Member
Topic starter
 
Hello Everybody!  Hope you all are doing just great!
I am working on an assignment with Office Pro21 in my sheet I have to make some data in the K column by using the data in the B column and the blank cells are in the same order in both the B and K columns. The problem is when I use the formula =IF(B10="","",P$4*B3+(1-G$4)*C3) the logical part of the formula is working correctly  (I mean the result is filled in the correct cell or I must say IF part is working ) but the calculation part is picking wrong cells for the calculation I mean G$4*B3+(1-P$4)*C3) Band K cells are wrongly picked up resulting right cell but wrong data. can you suggest anything for this, please? hope you have time ..thnx for checking...
 
 
 
 
Posted : 18/02/2024 2:37 am
(@catalinb)
Posts: 1937
Member Admin
 

Hi Abdul,
P$4 and G$4 references are locked to row 4, if you copy the formula down will still look into row 4, maybe this is the problem? If so, remove the $ to unlock row references.

 
Posted : 20/02/2024 1:46 am
(@ahsiraj70gmail-com)
Posts: 3
Active Member
Topic starter
 

Thanks, Catalin for checking! You are right that's a typing error G$4 is supposed to be P$4 still the issue still not sorted out.

Rgds Abdul.

 
Posted : 21/02/2024 1:34 am
(@kjbox)
Posts: 69
Trusted Member
 

You still have the $ (P$4), so you formula will always reference That cell no matter how far you copy the formula down.

Try doing as Catalin suggested and remove the $ (make it P4 instead of P$4)

 
Posted : 21/02/2024 10:55 am
(@ahsiraj70gmail-com)
Posts: 3
Active Member
Topic starter
 

Hi Charles,

My corrected formula =E$2*B3+(1-E$2)*C3, the sheet is as mentioned below, I want to fill the result at cells C5,C10,C14,C17,C20,C24 .

I tried =IF(B5="","",E$2*B3+(1-E$2)*C3) this formula and many others but no luck, can you think of any thing please

 

A B C D E
1 Demand Forecast    
2       .05
3 21 21    
4        
5 18      
6        
7        
8        
9        
10 17      
11        
12        
13        
14 21      
15        
16        
17 18      
18        
19        
20 21      
21        
22        
23        
24 20      
 
Posted : 22/02/2024 5:29 am
Share: