Formula construction calculation question .

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
706
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi ,

Am stuck on a solution for the following problem . In column B i have assorted numbers 1 -99 for example . In column
A i have text , either 20 or 40.

I would like a formula which shows me the number greater than 20 which is in column B IF the word in column A says 40.
So , if row 1 column A had 40 as text and row 1 column B had 35 as number the answer i would like to see is 15 .

Any help greatly appreciated ,

Kind regards,

Russ.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Not sure I have your idea down correctly. What are the calculations whe A ="20" and B <40, What if A="20" and B>=40? And what happens when A = "40"? (How do you get 35 in your example?

This is what I gathered from your description of the scenario:

Mr excel questions 66.xlsm
ABC
1
220218
32082-62
42031-11
5405252
62091-71
7405656
8403939
9407676
102075-55
11405050
122034-14
13407777
142067-47
152079-59
16405353
172053-33
182045-25
192082-62
20407171
212048-28
22406666
232062-42
24405050
25402828
262097-77
27405959
28408080
29404747
302029-9
312064-44
32405555
33403535
34408888
35402 
36405252
37403131
38404343
3920614
40409292
412045-25
424012 
432043-23
442043-23
452037-17
46402424
472027-7
482046-26
492094-74
5020128
5120614
5220812
534020 
54407575
5520911
562039-19
57402323
582061-41
59404343
6020137
614015 
62201010
63402121
642092-72
65405151
66407373
67407171
682062-42
69201010
70406464
71403737
722069-49
73405 
74409797
75409393
76405858
772088-68
78402323
79402828
80403434
81406565
82201010
83406565
842080-60
852034-14
862040-20
87404141
882062-42
892072-52
902046-26
91405353
922038-18
93403535
942067-47
952025-5
962094-74
97404949
98408080
99407474
1002023-3
Russ At Index
Cell Formulas
RangeFormula
C2:C100C2=IF(A2="40",IF(B2>20,B2,""),(1*A2)-B2)
 
Upvote 0
Hi Awoohaw ,

Thanks for the reply ,

Will re send data later , thanks again.

Russ
 
Upvote 0

Forum statistics

Threads
1,215,131
Messages
6,123,223
Members
449,091
Latest member
jeremy_bp001

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
Back
Top