Problem with IF Formula

pradeepm

New Member
Joined
Jan 28, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Please help me in the below formula.

=IF(A3>=1,"1",IF(B3>=1,"1",IF(A4>=1,"3",IF(B4>=2,"3",IF(A5>=1,"6",IF(B5>=3,"6",F(A6>=1,"10",IF(B6>=4,"10",IF(A7>=1,"15",IF(B7>=5,"15",IF(A8>=2,"2",IF(B8>=1,"2",IF(A9>=2,"5",IF(B9>=2,"5",IF(A10>=3,"13",IF(B10>=3,"13",IF(A11>=4,"21",IF(B11>=4,"21",IF(A12>=5,"25",IF(B12>=5,"25",IF(A13>=3,"22",IF(B13>=5,"22",IF(A14>=3,"8",IF(B14>=2,"8",IF(A15>=4,"12",IF(B15>=2,"12",IF(A16>=5,"16",IF(B16>=2,"16",IF(A17>=3,"4",IF(B17>=1,"4",IF(A18>=4,"7",IF(B18>=1,"7",IF(A19>=2,"9",IF(B19>=3,"9",IF(A20>=5,"11",IF(B20>=1,"11",IF(A21>=2,"14",IF(B21>=4,"14",IF(A22>=4,"17",IF(B22>=3,"17",IF(A23>=3,"18",IF(B23>=4,"18",IF(A24>=2,"19",IF(B24>=5,"19",IF(A25>=5,"20",IF(B25>=3,"20",IF(A26>=5,"23",IF(B26>=4,"23",IF(A27>=4,"24",IF(B27>=5,"24"))

I have two different figures in Column "A" and Column "B". I want to apply a IF formula in which the Result will be a different number mentioned in IF formula.

Attached Excel file with detail explanation.

Regards,
Pradeep
 

Attachments

  • EXCEL FORMULAS.jpg
    EXCEL FORMULAS.jpg
    188.8 KB · Views: 31

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
@pradeepm can you install the xl2bb add-in which makes it easier for people to help you (so we do not need to recreate your worksheet)?
 
Upvote 0
You should try to make a table and lookup values in it instead of manually typing out all the results. Do a partial match.
 
Upvote 0
I suggest using a concatenated (with "&" character) and use XLOOKUP or INDEX(MATCH)

Mr Excel Questions.xlsx
ABCDE
1ABResult
2111
3123
41316
51410
62515
7212
8
9
10ABLOOKUP
112515=INDEX(C2:C7,MATCH(A11&B11,A2:A7&B2:B7,0))
1215=XLOOKUP(A11&B11,A2:A7&B2:B7,C2:C7)
Sheet4
Cell Formulas
RangeFormula
C11C11=INDEX(C2:C7,MATCH(A11&B11,A2:A7&B2:B7,0))
C12C12=XLOOKUP(A11&B11,A2:A7&B2:B7,C2:C7)
E11:E12E11=FORMULATEXT(C11)
Cells with Data Validation
CellAllowCriteria
A11List=$A$2:$A$7
B11List=$B$2:$B$7
 
Last edited:
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Problem with IF Formula
and here I want to apply one single formula with 25 If conditions
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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